All analysis results are placed on the same branch

SonarQube Version 7.2 (build 13530) Developer Edition
All our analysis results from the Sonar Scanner plugin for Bamboo are placed on the same branch in Sonar. Checking the “Scanner Context” for each analysis in “Background Tasks” for the project shows me that the branch properties are being set:

  - sonar.branch.longLivedBranches.regex=(develop|staging)

But no other branches than master is created, and all results are merged in this one branch.

The build logs are reporting ANALYSIS SUCCESSFUL.

I thought at first that the issue was that target did not exist, but I get the same result when no value is set for target.

I cannot see that there is any way to manually create branches in the SonarQube web interface.

I have not tried much else, as I’m honestly not sure what to try.

With all results in one branch, the result history will be a mess, and we will not get any useful input to Pull-Requests in Bitbucket.

Looks like this was solved by removing the C++ plugin as mentioned here:

1 Like


I’m glad you worked through this.

I just want to mention that 7.9.1 is the current LTS and 8.0 is the latest version. By not upgrading you’re missing out on a lot of goodness :sparkles:.