Control Azure Pipeline status based on SonarCloud Quality Gate results

We are using SonarCloud with Azure DevOps to monitor our Code Quality.

We can see the quality gate results in pipeline using SonarCloud plugin but cannot control the pipelines status(pass/fail) based on quality gate result.

We want to fail the build pipeline if the quality gate result fails.
Is there a clean way to achieve this ?

Note : we do not want to go through custom scripts/plugin using API.

Thanks,
Tejas

Hi @tejas.shah

We don’t provide anything regarding to this scenario.

We strongly support opening PullRequest, for which you can fail them based on Quality Gate status.

HTH,
Mickaël

1 Like

@tejas.shah , I use the unoficcial SonarCloud build breaker extension from the Marketplace, works for me.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.