Not integrated CI tools

If using a CI tool that is not integrated with SonarQube Server.

Failing a pipeline job when the quality gate fails

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:

  1. Set the sonar.qualitygate.wait analysis parameter to true.

  2. 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?