Start Free
SonarQube Community Build | DevOps platform integration | Azure DevOps integration | Adding analysis to Azure pipeline | Quality gate status in release pipeline

Checking the SonarQube quality gate status in your Azure release pipeline

On this page

If the Publish Quality Gate Result task in your build pipeline is enabled, you can check the SonarQube Community Build quality gate status in your release pipeline. It takes place as a pre-deployment gate

Note that this feature is in preview and:

  • Only the quality gate related to the primary build artifact of the release will be checked.
  • During a build, if multiple analyses are performed, all of the related quality gates are checked. If one of them has the status WARN, ERROR, or NONE, then the quality gate status on the release pipeline will be failed.
  • If the quality gate is in the failed state, it will not be possible to get the pre-deployment gate passing as this status will remain in its initial state. You will have to execute another build with either the current issues corrected in SonarQube Community Build or with another commit for fixing them.
  • The pre-deployment gates in the release pipeline check the status every five minutes for one day, by default. If you know that the SonarQube Community Build quality gate has failed and will remain in the failed state on Azure DevOps, you can increase this duration to a maximum of 6 minutes (so the gate will be evaluated only twice), or just cancel the release itself.

To check the SonarQube quality gate status in your Azure release pipeline:

  1. In the Azure release pipeline, add a stage, then select pre-deployment conditions.
  2. Enable the gates, then select add. Choose SonarQube Cloud Quality Gate status check.
  3. Save your pipeline.

Adding the analysis to your build pipeline:


Was this page helpful?

© 2008-2025 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License