AWS Documentation

  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS SonarQubeTM on Amazon Linux 2
  5. Windows

Windows

After downloading the SonarQube Scanner zip file, extract into c:\sonar-scanner for example.
Go to your project root and run sonnar-scanner. You can copy command line parameters shown below.

cd YOUR_PROJECT_ROOT“c:\sonar-scanner\bin\sonar-scanner.bat” ^
 -D”sonar.projectKey=Awesome-project” ^
 -D”sonar.sources=.” ^
 -D”sonar.host.url=http://34.223.105.29" ^
 -D”sonar.login=a5c2b351940ab87932783718c4c3d50892769c0c”

NOTE: As we installed self-signed dummy SSL certificate for test purpose, we have to make Sonar Scanner client to trust our self-signed dummy certificate, or use non-ssl(http) url for `-Dsonar.host.url` option. We strongly recommend to register static domain and setup trusted certificate in production. For SSL configuration, please refer to Tutorial: Configure SSL/TLS on Amazon Linux 2.

For more details about SonarQube and SonarQube Scanner, please refer to SonarQube Documentation.

Was this article helpful to you? Yes No

How can we help?