AWS Documentation

  1. Home
  2. Docs
  3. AWS Documentation
  4. Amazon Linux 2 SonarQube 9.3
  5. macOS and Linux

macOS and Linux

After download the SonarQube Scanner zip file, extract into /usr/local for example.

$ sudo unzip -d /usr/local sonar-scanner-cli-*.zip

Go to your project root and run sonnar-scanner. You can copy command line parameters below.

NOTE: We use non-ssl(http) url for -Dsonar.host.url option in the example below.

$ cd YOUR_PROJECT_ROOT

$ /usr/local/sonar-scanner-*/bin/sonar-scanner \
  -Dsonar.projectKey=sonarqube-test \
  -Dsonar.sources=. \
  -Dsonar.host.url=http://18.207.184.109 \
  -Dsonar.login=ceec106b1500685c8cf44ad428e9d231de7b5349
Was this article helpful to you? Yes No

How can we help?