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)
  - sonar.branch.name=implementation/MCS-5521_SonarQubeIntegration
  - sonar.branch.target=release/0.65

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:
https://community.sonarsource.com/t/sonarqube-7-2-branches-not-working-at-all/3401/28

1 Like

Hi,

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

 
:wink:
Ann