How to block your PR merge in SonarQube with BitBucket Server

Hi there,

Atlassian just released the 6.9 version of BitBucket Server that allows you to block Pull Requests merge if they don’t match the expected quality, ie. your Quality Gate for the PR is red.

To do that, it’s very easy :

That’s all! Once the CI analyses a PR that does not match expected quality, you will be able to see something like this :
image

See also:

Cheers,

5 Likes

Hey,

it seems you lost this information in the latest docs.
In 8.5 com.sonarsource.sonarqube was still mentioned in the Bitbucket part.

But in the latest 8.6 docs the Bitbucket part was moved here but without mentioning the property com.sonarsource.sonarqube.

(Sorry, I did not find the “report issues with the documentation” part, if you point me the way I can file an issue)

Hi Markus,

Thanks for finding this! I’ve created a ticket to get this information added to the Bitbucket Server integration page.

Mike