Other CIs
Running an analysis on a CI provider other than those with specific integrations.
Last updated
Was this helpful?
Running an analysis on a CI provider other than those with specific integrations.
Integrate the SonarScanner analysis into your build pipeline as explained in the corresponding scanner section:
If necessary, adjust the Analysis scope or customize other default Analysis parameters.
Start and test the analysis.
Add the branch analysis or pull request analysis to your pipeline. See the Branch analysis setup and Pull request analysis pages for more information.
Here is an example of a configuration for pull requests in a CI job:
sonar.pullrequest.base=main
sonar.pullrequest.branch=feature/my-new-feature
sonar.pullrequest.key=5If your project is bound to Azure DevOps and you're running analysis outside of Azure Pipelines, you must also pass Azure DevOps-specific parameters explicitly. Azure Pipelines detects these values automatically from its environment; other CI systems don't. See Azure DevOps PR decoration parameters for more information about these parameters.
You can configure the SonarScanner to wait for the quality gate result. This setting will force the pipeline to fail if the quality gate fails.
To do so:
Set the sonar.qualitygate.wait analysis parameter to true.
You can set the sonar.qualitygate.timeout analysis parameters to the number of seconds that the scanner should wait for a report to be processed. The default is 300 seconds.
For general information on setting up analysis parameters, see Configuration overview.
Last updated
Was this helpful?
Was this helpful?

