Hi, I am trying to integrating golangci-lint with SonarQube but getting following errors.
I have mentioned sonar.go.golangci-lint.reportPaths=report.xml in sonar.properties file.
What could be the possible reasons for these failure?
[2023-11-03T12:27:10.414Z] INFO: Sensor Import of GolangCI-Lint issues [go] [2023-11-03T12:27:10.414Z] WARN: Unable to import GolangCI-Lint report file(s):
[2023-11-03T12:27:10.414Z] - /home/jenkins/agent/workspace/test-22_vishal_try-golangci-lint/test-repo/report.xml
[2023-11-03T12:27:10.414Z] The report file(s) can not be found. Check that the property ‘sonar.go.golangci-lint.reportPaths’ is correctly configured.
[2023-11-03T12:27:10.414Z] INFO: Sensor Import of GolangCI-Lint issues [go] (done) | time=5ms
Sorry for late reply.
No, Analysis is run in a different container created by Jenkins pipeline. We use git to stash and unstash report file generated by golangci-lint. I am assuming something is wrong with file path but that also looks good to me.