Sonarqube is not decorating merge(pull) request.
I’m following this documentation: [Decorating Pull Requests | SonarQube Docs]
I am using:
- Sonarqube 8.9 Developer Edition
- sonar-maven-plugin: 188.8.131.526
- Jenkins 2.277
- Gitlab 14.17
The Admin->Configuration->ALM Integrations indicates the feature is enabled.
I don’t see anything relevant in the sonarqube logs.
Below are my sonar logs -
2021.12.05 18:48:37 INFO ce[AX2L7SXvKaPjrWmJUXNG][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Webhooks | globalWebhooks=0 | projectWebhooks=0 | status=SUCCESS | time=5ms 2021.12.05 18:48:37 INFO ce[AX2L7SXvKaPjrWmJUXNG][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Pull Request decoration | status=SUCCESS | time=0ms 2021.12.05 18:48:37 INFO ce[AX2L7SXvKaPjrWmJUXNG][o.s.c.t.CeWorkerImpl] Executed task | project=com.test:xyz-test | type=REPORT | branch=avinash.xyz/212/ABC-23228_quality_gate_test | branchType=BRANCH | id=AX2L7SXvKaPjrWmJUXNG | submitter=crm-sonar | status=SUCCESS | time=1162ms
Any suggestions to help us get this working or at least where to look for relevant error logs?
One thing that is not clear to me is whether I need to set the below environment variables? I see these are for gitlab CI but we are using Jenkins CI
I’m not passing the below 3 variables as this would automatically taken care by scanner
Do I need to pass these into the scanner?