Skip to content

jaeinkim/sonarqube

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonar qube

sonarqube와 jenkins 연동 실습

  1. 실습 예제 fork 하기

fork create a new fork

  1. sonarqube에 자신의 프로젝트 만들기

https://sonarqube.momoiot.co.kr/projects

create project select local project create local project setup project select Locally generate token generated token

  1. Jenkins에 파이프라인 만들기

https://jenkins.momoiot.co.kr/me/my-views/view/all/

New Item Multibranch pipeline branch source scan pipeline

  1. Jenkinsfile의 sonarq 프로젝트 키 변경

change key

  1. Jenkins 파이프라인 수동 실행

select branch build now console output result

sonar scanner

windows

docker run --rm -e SONAR_HOST_URL="http://host.docker.internal:9000"  -v ".:/usr/src" sonarsource/sonar-scanner-cli -D"sonar.projectKey=hello2" -D"sonar.sources=." -D"sonar.host.url=http://host.docker.internal:9000" -D"sonar.token=CHANGEIT"

mac

docker run --rm \
  -e SONAR_HOST_URL="http://host.docker.internal:9000"  \
  -v ".:/usr/src" sonarsource/sonar-scanner-cli \
  -Dsonar.projectKey=java \
  -Dsonar.sources=. \
  -D"sonar.java.binaries=target/classes" \
  -Dsonar.host.url=http://http://host.docker.internal:9000 \
  -Dsonar.token=sqp_a1ef2470a50a6570ad47ad410ea46135416c8f22

custom rules

my way created my way activate dialog bulk deactivate setting-quality select my way

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 84.8%
  • JavaScript 13.2%
  • Other 2.0%