Skip to content

SonarSource/sonarcloud-circleci-orb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonarcloud-circleci-orb

Support for SonarScanner CLI in CircleCI

SonarQube Cloud Orb

The SonarQube Cloud Orb can be used with any Linux-based Docker image that includes the command-line tools curl and unzip.

Connecting to the EU region

  • To connect to your SonarQube Cloud project on sonarcloud.io, you need to set up an API token. We recommend setting up a CircleCI context in your organization named sonarcloud that contains a variable with the key SONAR_TOKEN and the API token as the value.

Connecting to the US region

  • To connect to your SonarQube Cloud project in the US region, sonarqube.us, you need to pass the sonar.region=US parameter to the scanner. For this, we recommend adding the SONAR_REGION environment variable to your CircleCI context with the value US.
  • To set up the API token, the recommendation is the same as for the EU region.

Usage examples

See files in the examples directory for examples of how to use the orb.

Publishing a new version

To publish a new version of the orb, you need to change the version found in .circleci/config.yml to the new version. The CircleCI build pipeline will then publish the new version of the orb.

Requirements

See https://docs.sonarcloud.io/appendices/scanner-environment/

About

Support of SonarScanner CLI in CircleCI

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 14

Languages