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.
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...
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