4.1 Installation of SonarScanner in Windows
Last updated
Was this helpful?
Last updated
Was this helpful?
Expand the downloaded file into the directory of your choice. We'll refer to it as _<install_directory> _in the next steps.
Update the global settings (server URL) by editing<install_directory>/conf/sonar-scanner.properties:
Create a new SONAR_RUNNER_HOME _environment variable set to <install_directory>_.
Add the _<install_directory>/bin _directory to your path.
You can check the basic installation by opening a new shell and executing the commandsonar-scanner -h
(on Windows platform the command issonar-scanner.bat -h
) . You should get a message like this:
If you need more debug information you can add thesonar.verbose
property by adding the command line parameter-Dsonar.verbose=true
.
Always keep in mind that if you change the port number of SonarQube installation then you must also change in sonar-scanner.properties under configuration folder(conf) of sonar scanner installation directory.
Restart the sonarQube server if you have changed configuration settings of sonarscanner
You are now ready to analyze a project with the SonarQube Scanner.
#----- Default SonarQube server#sonar.host.url=