I need to figure it out differently…How to do it ? I have installed the branch plugin for SonarQube 7.1 version and its not helping me… only master is visible in SonarQube
My planned organization for the Branch Plugin is as follows:
- The “Main” branch is my “Master” branch
- The long-lived branches are any “DevBranch” branches
- The short-lived branches are any “feature,” “hotfix,” “bugfix,” or malformed-named branches
I’m trying to figure out how to get this working (what steps I need to do and when). Assume that I’ve got a clean SonarQube server and the sonar scanner/runner.
My questions are:
How do I define the main branch so that analysis are made separately for master and its corresponding branches?
Do I need to change the [sonar.branch.name] for master and its branches please mention how to do?
We are following the maven <groupId>:<artifactId> pattern with no additional information
Our sonar.projectName is provided through sonar analysis section in post build actionbs in Jenkins.
Presently I am getting both Master and its branches in same analysis I am unable to differentiate between the master sanalysis and branch analysis in sonarqube…
sonar.projectVersion=1.0 for master and 2.0 for dev
soanr.branch.name=“master”/for devbranch I change here /“devBranch”