Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Problems configuring Sonar Merge checks in Bitbucket

I need to configure our repos to not allow merges if a certain level of sonar issues are greater than 0. (Basically prevent major, critical and blocker issues from being merged).

To do this I'm basically going to: Repository Settings > Sonar > Merge Checks. And there I do the following:

1. check the "Use custom repository settings from below"

2. Enable the "Merge Checks"

3. Putting the "Max. number of new Sonar issues" with 0 and select the level as "Major"

4. Hit save.

With this, if for example I introduce a blocker issue, when I go to the Pull Request approval page the merge button allows me to merge.

One note: If I check the "Use SonarQube Quality Gates" and if I violate the quality gate it prevents me from merging. The problem is that I don't want to prevent using the quality gates because that is validating other things too.

My company is using Bitbucket version 6.10.2


Thanks in advance.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,741 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you