Configuration to make the Sonar Cloud Analysis fail when the Qulaity Gate fails

Dear Team,

We have set up an Azure pipeline to perform Sonar Cloud Analysis.Pipeline log states that Sonar Cloud Analysis is sucessfull even when the quality gate fails.Can you please let me know if there is any configuration to make the Sonar Cloud Analysis fail when the Qulaity Gate fails as well.OR if there is any maven configuration to fail the pipeline task when Sonar Quality Gate fails.

Thanks in Advance
Kind Regards
Renjini.

Dear Team,

I have found a solution to this :slight_smile: . if we set sonar.qualitygate.wait=true in the prepare task (in our case its java and analysis happens during the build) pipeline waits for Quality Gate results and fails the pipeline if the Quality Gate fails.

So you can close this Topic.

Kind Regards,
Renjini.

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