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.projectKey=$JOB_NAME
sonar.projectName=$JOB_NAME
sonar.projectVersion=1.0 for master and 2.0 for dev
sonar.projectKey=$JOB_NAME
soanr.branch.name=“master”/for devbranch I change here /“devBranch”
sonar.sources=/var/lib/jenkins/workspace/
sonar.java.binaries=**/target/classes
Is the drop-down available for community edition of sonarqube???If yes please tell how to configure in Jenkins to achieve it…If no which edition do I need…
That plugin is not developed by SonarSource and I’m not able to help with it.
Most likely it will only support a small part of the branch feature as offered by the developer edition.
Here are two screenshots: one of the drop down, other from the page to manage branches.
If you would like to know more about what is offered by the developer edition and get a trial license to try it out, you can contact us through the form here.
Hi,
You can rename the main branch.
Go to the Administration menu, select Branches & Pull Requests and you’ll have that option in the Actions for the current main branch.
Noob question relevant (I hope) to this thread: The SonarQube metrics icons are displayed only for the master branch on BitBucket. I would like them to appear for all long-living branches.
I have “Enable plug-in for branches matching regex only” set to ((?!feature/).)*
Can someone let me know how to accomplish this? Thanks.