Sonar Quality Gate for maven based projects

Hi there

I struggle getting SonarCloud Quality Gate in my bitbucket pipeline working. The only information I found in this regard is from October 2019 and states that quality gate is not supported for java maven based projects (Problem setting up quality gate when using sonar scan as mvn script and not pipe) and that one can vote for it to be implemented under Log in with Atlassian account.

Unfortunately I can’t access the JIRA Ticket and therefore neither vote for it nor see if this was ever implemented.

Any help would be appreciated…

Kind Regards,
tom

Hey there.

You can find the current roadmap item here: https://portal.productboard.com/sonarsource/1-sonarcloud/c/232-integrate-quality-gate-pipe-for-bitbucket-maven-projects.

And, you can pass -Dsonar.qualitygate.wait=true to the Maven command in order to have the scanner poll for the Quality Gate status and fail if it’s in failure.