gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 207 forks source link

Not updated sonar dashboard #188

Open DakarKaret opened 5 years ago

DakarKaret commented 5 years ago

With sonar.gradle:

allprojects { sonarqube{ properties { property "sonar.host.url", "https://smth.com" property "sonar.login", "112233" property "sonar.projectName", "project-name" property "sonar.projectKey", "project-name" property "sonar.buildbreaker.skip", "false" } } }

And in jenkins: bash gradlew sonarqube \ -Dsonar.analysis.mode=preview \ -Dsonar.gitlab.project_id=538 \ -Dsonar.gitlab.commit_sha=${GIT_COMMIT} \ -Dsonar.gitlab.ref_name=${GIT_BRANCH} \ -Dsonar.projectVersion=${GIT_TAG}

Plugin only left comments at gitlab, dashboard is not updated. Removing -Dsonar.analysis.mode=preview \ disable comment and enable dashboard