We are using Bitbucket Pipelines with SonarScanner for .NET (as described in the link below). It’s all working fine, and results are uploaded to SonarCloud where the Quality Gate is indicating failed, as it should. Is there a way using the SonarScanner tool for .NET (or any other way) to stop the build pipeline when the Quality Gate fails?
Except failing the approvement of a PullRequest, there’s no proper way to do so right now.
All i can think of is to add a step that calls the SonarCloud API and check the QG status for your specific branch/project and raises an error if needed.