SonarCloud analysis using Jenkins

Is there a way to fail the build in Jenkins if Quality Gate has Failed on SonarCloud?

I am using the Sonar Maven Properties in Jenkins for the build.

I guess the following documentation might help you: Pause pipeline until quality gate is computed

It’s meant for SonarQube, but it should work fine for SonarCloud too.

Hi,

Just confirming that this is working for SonarCloud as well. Thank for your response.

1 Like