Triggering Scan
Here's an example of a SonarScanner command that triggers a scan to SonarCloud with properties passed as attributes:
In this example:
Replace
your_project_key
with the key of your project in SonarCloud.Replace
your_organization_key
with the key of your organization in SonarCloud.Adjust the value of
sonar.sources
to the directory containing your source code that you want to analyze.Set
sonar.host.url
to the URL of SonarCloud (https://sonarcloud.io for the public instance).Replace
your_authentication_token
with the access token or authentication token for your SonarCloud account.
Last updated