Niek
(Niek)
August 16, 2021, 3:04pm
1
I have a problem with GitLab MRs being scanned: status comments are not being posted.
I have set both SONAR_TOKEN
and SONAR_HOST_URL
The code and coverage is correctly being scanned and uploaded
No errors or warnings in the scan log
Any idea what could be the issue?
Hi Niek,
Sorry for the delay. Can you give us the details of your organization and project?
Niek
(Niek)
August 25, 2021, 5:06pm
4
I figured out the issue - the cache needs to be provided. Otherwise the MRs will be analysed, but only the branches and no comments will be posted in the MR. So the fix was to add this:
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
Glad you figured it out, and thanks for posting the solution!
system
(system)
Closed
September 2, 2021, 2:07pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.