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:
Set the
sonar.qualitygate.waitanalysis parameter totrue.You can set the
sonar.qualitygate.timeoutanalysis 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.
Related pages
Was this helpful?

