sonar-gitlab-plugin icon indicating copy to clipboard operation
sonar-gitlab-plugin copied to clipboard

Global comment on merge request

Open moreorover opened this issue 1 year ago • 0 comments

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:

image

And Sonar Qube reports shows the following

image

However, the global comment does not list the issues with the links to the code as per default global comment.

image

moreorover avatar Jul 03 '23 18:07 moreorover