Set the build state as partially succeeded on azure

Hello community,
please i have problem. i integrate sonarcloud on azure devops and i defined a new pipeline, so to set the build state as partially succeeded on azure devops if the quality gate is failed.
Thank’s a lot.

Hi,

This is currently not supported. The only way to break something on Azure is by creating a PR, and adding a “build validation” on which you can select the Quality Gate. You’ll find more information on this link on how to set it up : https://docs.microsoft.com/en-us/labs/devops/sonarcloudlab/index?tutorial-step=4

HTH,
Mickaël

Thank you @mickaelcaro

@mickaelcaro Can i get the result of publish quality gate task and set it in a variable ?