Skip to content

Global comment on merge request #36

@moreorover

Description

@moreorover

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions