AWS Documentation

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

macOS and Linux

After downloading 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 shown below.

$ cd YOUR_PROJECT_ROOT

$ /usr/local/sonar-scanner-*/bin/sonar-scanner \
 -Dsonar.projectKey=Awesome-project \
 -Dsonar.sources=. \
 -Dsonar.host.url=http://34.223.105.29 \
 -Dsonar.login=a5c2b351940ab87932783718c4c3d50892769c0c
Was this article helpful to you? Yes No

How can we help?