QualityGate integration with GitLab


I am software engineer at Synaptics and I am trying to understand how the QualityGate reporting under GitLab Merge Requests works - and if there is any way to configure it. Allow me to explain the problem I am trying to solve:

We are using a single GitLab repository that is being shared between multiple teams/projects. At this point in time my team and one other team which we share the repository with have set up their SonarQube project at our SonarQube Enterprise 9.9 server. I was about to enable Pull Request scans in our SQ project when I discovered two problems:

  1. It seems that there is no way to customise the QualityGate report posted under the GitLab Merge Request. We would like to add some text to it explaining which team/project this report belongs to

  2. It looks like there is no way to have two or more SonarQube projects reporting their QualityGate under the same Merge Request. Only one, latest report is being kept under the Merge Request, with the older reports getting automatically deleted, regardless of which SQ project they originated from

Are there any solutions to above problems? I hope I am just missing something here. I would appreciate if anyone could help me with this :slight_smile:


Welcome to the community!

You’re in Enterprise Edition($$), so you have access to mono repo PR decoration. That should take care of the question of multiple projects in your repo being touched by the same PR. (Presumably that’s not across teams/SonarQube instances…)

Maybe it also helps with the question of labeling the Quality Gate results per team? Because there’s no way to customize it.

Beyond that, I urge you to consolidate your SonarQube instances. Presumably that means getting your colleagues to move onto your EE instance, so all of you can benefit from monorepo decoration.