mc1arke / sonarqube-community-branch-plugin

A plugin that allows branch analysis and pull request decoration in the Community version of Sonarqube
GNU Lesser General Public License v3.0
2.26k stars 526 forks source link

Current edition does not support branch feature plugin -> 1.18.0 #858

Closed danilodorgam closed 10 months ago

danilodorgam commented 10 months ago

Describe the bug PLugin is listed as installed by sonar, but when I send an analysis of a project it returns "Current edition does not support branch feature"

To Reproduce sonar-scanner -Dsonar.host.url=$SONAR_HOST -Dsonar.branch.name=$CI_COMMIT_REF_SLUG -Dsonar.projectName=$CI_PROJECT_NAME -Dsonar.projectKey=$CI_PROJECT_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.qualitygate.wait=true -Dsonar.scm.disabled=true -Dproject.settings=config-pipeline/sonar-project.properties

Software Versions

danilodorgam commented 10 months ago

In my case, I can adjust with this change:

jvmOpts: "-javaagent:/opt/sonarqube/extensions/plugins/sonarqube-community-branch-plugin-1.18.0.jar=web"
sonar.web.javaOpts: "-javaagent:/opt/sonarqube/extensions/plugins/sonarqube-community-branch-plugin-1.18.0.jar=web"
jvmCeOpts: "-javaagent:/opt/sonarqube/extensions/plugins/sonarqube-community-branch-plugin-1.18.0.jar=ce"
sonar.ce.javaOpts: "-javaagent:/opt/sonarqube/extensions/plugins/sonarqube-community-branch-plugin-1.18.0.jar=ce"

ref: https://github.com/mc1arke/sonarqube-community-branch-plugin/issues/782