Closed thanarino closed 4 years ago
Update: I turned on the Debug logs, and it turns out I also need to provide SONAR_URL in the command: gitlab-sonar-scanner -X -Dsonar.gitlab.url=https://gitlab.com
but, the job now takes too long to execute Executing post-job 'GitLab Commit Issue Publisher'
. There are also no logs after that, and the job just times out at 1 hour. Are there ways to see where the post-job is stuck? Any other suggestions are appreciated. Thank you very much.
Update 2: Added sonar.gitlab.user_token=$GITLAB_LOGIN
to the command, and it worked. Thanks.
Hello, I am trying to integrate SonarQube to GitLab through this plugin, but it does not create commit/merge request comments. The scan finishes and updates the project results in the SonarQube deployment, but GitLab only reports that the Job has finished. I am using GitLab Community Edition, the latest one found at GitLab.com. Is this plugin still compatible with that version? Also, I am using version 4.1.0 of the plugin and version 7.6 of SonarQube.
Here is my
.gitlab-ci.yml
:My SonarQube GitLab plugin config is the following:
I have also tried using the
gitlab-sonar-scanner
, and here is my.gitlab-ci.yml
config when I used it:Is there something wrong with my configuration? Also, is it better to use
gitlab-sonar-scanner
or should I just skip using it? Thank you very much.