Open ovidals opened 4 years ago
Hi, may I know are you using the [ciricihq/gitlab-sonar-scanner] image in your gitlab-ci.yml? thanks
Hi, may I know are you using the [ciricihq/gitlab-sonar-scanner] image in your gitlab-ci.yml? thanks
Yes LiewJK.
Hi, may I know are you using the [ciricihq/gitlab-sonar-scanner] image in your gitlab-ci.yml? thanks
Yes LiewJK.
Thanks
Is there any special configuration require to use this plugin? While running sonar-scanner, it throws an error of sonar-scanner command not found
Is there any special configuration require to use this plugin? While running sonar-scanner, it throws an error of sonar-scanner command not found
you have to use [ciricihq/gitlab-sonar-scanner] image
Thanks for your reply. Is it mentioned anywhere in official documentation of this plugin?
Thanks for your reply. Is it mentioned anywhere in official documentation of this plugin?
I'm not sure.. I just doing browse through the community support and get the solution. Hope its help.
Hi, I'm using sonar-gitlab-plugin V7.6.
When I scan my project on preview mode, the job succeed correctly, but when I merge the code on master and rerun sonar-scanner on publish mode it fails.
On publish mode, sonar-scanner is detecting all bad code from the project, so it fails.
Here is my calls:
Job ends correctly on MR before merge:
- gitlab-sonar-scanner -X -Dsonar.analysis.mode=preview -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$GIT_BRANCH -Dsonar.gitlab.project_id=$CI_PROJECT_ID
Job fails after merge:
- gitlab-sonar-scanner -Dsonar.analysis.mode=publish -Dsonar.gitlab.quality_gate_fail_mode=none -Dsonar.gitlab.disable_inline_comments=true -Dsonar.gitlab.disable_global_comment=true -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$GIT_BRANCH -Dsonar.gitlab.project_id=$CI_PROJECT_ID