Hi,
We're attempting to use SonarQube with a gitflow like branching strategy and coming across similar issues to this.
Our intention is to ensure that branches being checked into master don't introduce additional technical debt - and would like to utilize the quality gate for this.
We've updated to version 6.3.1, which has been a big improvement, but still having issues working with branches.
We've worked around some of these by automatically kicking off a SonarQube analysis at the point a branch is created in order to get a reference point for the branch.
Issues we still have are:
- Our development branches don't have versioning (master branch does, with the leak period set to previous version it works as needed here) - so it's not clear what to set the leak period to (would setting it to "BASELINE" as suggested in the leak period settings be referring to the first SonarQube analysis on that branch, or would it be looking for a version called "BASELINE").
- Updating a development branch by rebasing/merging from master will cause any issues coming from master be picked up as new issues (even if these were preexisting on master).
On smaller pieces of work these aren't too much of an issue, and it's easy to identify whether the issues are in new work or not - but on larger projects with many files being updated it quickly becomes a lengthy manual process to check.
Have there been any updates on this or does anyone have any recommendations in working with SonarQube in a GitFlow like branching strategy?
Thanks,
-Byron