Azure Devops Tasks - Publish Quality Gate Result - Add fail on failed Quality Gate

Please add an option to fail the pipeline task, when the quality gate fails.
There are workarounds by adding additional tasks or scripts, but this is a feature that should be in the sonar task.

Hi Van Hoof Raf and welcome to our community :slight_smile:
This option has been debated several times internally. So far, our position is that the failed QG should prevent you from adding bad quality code to your main branch via PRs (our Fix The Leak philosophy).

Also, to prevent you from deploying bad quality code, in SonarCloud we added the support for Release Gate (example here).

I don’t know if you are on SonarQube or SonarCloud so please feel free to give me any feedback.

Hope to help.