Decorate Gitlab MR with Quality Gate result

Hello,

Sonarqube Docker 9.2
Gitlab Docker 14.1.8

I’m trying to add Sonarqube Quality Gate results to Gitlab Merge request.

I have done the configuration to the Sonarqube :
image

After i launch this command with a gitlab runner

mvn -X verify sonar:sonar -U -Dmaven.test.skip.exec=true -Dsonar.qualitygate.wait=true -Dsonar.qualitygate.timeout=3600

I get my Sonar Quality Gate :
image

And i can see in the Sonar log :

ce.log:2022.03.10 14:19:34 INFO  ce[AX90MvoNKZALMJ5Hyg1F][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Report branch Quality Gate status to devops platforms | status=SUCCESS | 
time=18ms

But when i create a merge request nothing happen in my overview, no quality gate results.

How can i debug this ?
Any advice would be great !

Thanks.

Best regards,
Vincent

Hi, are you using Gitlab C (gitlab-runners) ?

Hello Pierre,

Thanks for your answer !
It was the fact that i should launch my gitlab-ci in a merge request event.

Best regards,
Vincent