sonar-gitlab-plugin
sonar-gitlab-plugin copied to clipboard
Global comment on merge request
Versions used:
GitLab 15.11 SonarQube 9.9.1 Sonar Gitlab Plugin 5.3.0
GitLab cicd pipeline is triggered on the merge request to main branch by the following command:
...
script:
- |
mvn sonar:sonar \
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA \
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME \
-Dsonar.gitlab.user_token=$TECHNICAL_USER_GITLAB_TOKEN \
-Dsonar.gitlab.project_id=$CI_PROJECT_ID \
-Dsonar.login=$SONARQUBE_TOKEN
...
Job proceeds to log the following:
And Sonar Qube reports shows the following
However, the global comment does not list the issues with the links to the code as per default global comment.