Skip to content

SonarQube Quality Gate Status as External Status Check in GitLab Ultimate

License

Notifications You must be signed in to change notification settings

unblu/u-sonar-status

Repository files navigation

u-sonar-status

Bot to report a SonarQube (or SonarCloud) "Pull Request Quality Gate Status" as "External Status Check" on Merge Requests in GitLab Ultimate.

mr overview

This way you can prevent merging when the external check is failing. This is better than failing the pipeline as recommended by the Sonar documentation (GitLab integration integration page).

When there are some changes in Sonar (some findings marked as false positives) turning the quality gate from "Failed" to "Passed", the status is automatically reported in GitLab without to re-run a failing pipeline.

Read more on the project home page.

Get in touch

Use the u-sonar-status issue tracker on GitHub.