Select Menu
Download Sonar Qube (ex:
sonarqube-6.7)
Download Sonar Scanner
(ex: sonar-scanner-cli-3.0.3.778-windows)
Set Java path for sonar
qube by setting Java path in wrapper.java.command property in the
<SonarQube_Path>\config\wrapper.conf file
Add project details in
to <Sonar_Scanner_Path>/conf/sonar-scanner.properties
sonar.host.url=http://localhost:9000
sonar.sourceEncoding=UTF-8
sonar.projectKey=amx_claro:eoc
sonar.projectName=AMX_CLARO
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.modules=module1
sonar.sources=src (source
code path)
module1.sonar.projectName=module1
Start Sonar Qube by executing
StartSonar.bat file from the
path:<SonarQube_Path>\bin\windows-x86-32
Above command will run
the sonar qube engine in 9000 port. We can access it by http://localhost:9000/projects
Start Sonar Scanner by
executing sonar-scanner.bat file from the path :
<Sonar_Scanner_Path>\bin
On Start, sonar
scanner will scan the project based on the inputs details given in
sonar-scanner.properties
On Completion of scan ,
below message is dieplayed
Scanned result can be
accessed through http://localhost:9000/dashboard/index/amx_claro:eoc
Top
0 comments :
Post a Comment