gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 208 forks source link

The plugin fails to comment to a huge merge request #249

Open taraskreknin opened 5 years ago

taraskreknin commented 5 years ago

The merge request contains 600+ files added/changed. I run sonar-scanner with the sonar-project.properties set up correctly and get this error:

...
12:32:37.635 INFO: 1599/1599 components tracked
12:32:37.636 INFO: ANALYSIS SUCCESSFUL
12:32:37.983 DEBUG: 'Sonar Plug-in for Bitbucket Cloud' skipped because one of the required properties is missing
12:32:37.984 DEBUG: Post-jobs : GitLab Commit Issue Publisher (wrapped)
12:32:37.984 INFO: Executing post-job GitLab Commit Issue Publisher (wrapped)
12:32:39.942 INFO: ------------------------------------------------------------------------
12:32:39.942 INFO: EXECUTION FAILURE
12:32:39.943 INFO: ------------------------------------------------------------------------
12:32:39.943 INFO: Total time: 16.582s
12:32:39.982 INFO: Final Memory: 13M/57M
12:32:39.982 INFO: ------------------------------------------------------------------------
12:32:39.982 ERROR: Error during SonarQube Scanner execution
12:32:39.982 ERROR: SonarQube failed to complete the review of this commit: Unable to perform GitLab WS operation
12:32:39.982 ERROR: Caused by: Unable to perform GitLab WS operation
12:32:39.982 ERROR: Caused by: https://<myGitlabPrivateServer.com>/api/v4/mits/749eb33138cc41c3f84cf4fc4b7eec514d4245f0/diff?id=37&page=2&per_page=20&sha=749eb33138cc41c3f84cf4fc4b7eec514d4245f0
12:32:39.982 ERROR: 
12:32:39.982 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

Look at the weird url https://<myGitlabPrivateServer.com>/api/v4/**mits**/. It looks like it must be /commits/:sha/diff or something like this.

GitLab Enterprise Edition 12.0.3-ee Sonarqube Version 7.1 (build 11001) Plugin 4.0.0

ndesai15 commented 4 years ago

Hello, curious to know.

  1. Which docker image are you using?
  2. Do we have to perform any specific configuration on GitLab side to use this plugin?
  3. I am getting "sonar-scanner: command not found" - error.

thank you in advance.