Branch Analysis with SonarQube 7.9 LTS

michael_giroux
Contributor
July 10, 2019

Currently using SonarQube 5.6.7.    Feature branches are compared with 'master' to give incremental issues.  When we upgrade to SonarQube 7.9 LTS Community Edition (which does not include branch support) each branch will appear in SonarQube as a separate project.  Our builds will run the analysis using project keys that consist of groupId:artifactId:branch-name as we are doing today with SonarQube 5.6.7.

Question: will the sonar4stash plugin be able to compare the two sonarqube projects, the one for the master branch, and the one for the feature branch?

1 answer

0 votes
Michael Rüegg _Mibex Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2019

Hi,

Yes, it will. The resulting project key in SQ is the same, no matter if you would use

-Dsonar.branch=develop -Dsonar.projectKey=myproject

or

-Dsonar.projectKey=myproject:develop

so for the sonar4stash app nothing changes in this regard.

Does that answer your question?

Thanks,
Michael (app vendor)

michael_giroux
Contributor
July 11, 2019

Yes, this does answer the question.  I will open a new question if I encounter difficulties.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events