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 207 forks source link

All Issues Erorr failing gitlab CI pipeline #220

Open mikesiconolfi opened 5 years ago

mikesiconolfi commented 5 years ago

Im not sure if this is by design or not but im running into an issue when i have Key: sonar.gitlab.all_issues set to true. When this is set and the pipeline runs it errors out:

INFO: ANALYSIS SUCCESSFUL INFO: Executing post-job 'GitLab Commit Issue Publisher' INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 10.047s INFO: Final Memory: 20M/469M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarQube Scanner execution ERROR: Report status=failed, desc=SonarQube reported 145 issues, with 132 critical (fail) and 13 major ERROR: ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging. ERROR: Job failed: exit code 1

If i set it to false it passes

INFO: ANALYSIS SUCCESSFUL INFO: Executing post-job 'GitLab Commit Issue Publisher' INFO: Report status=success, desc=SonarQube reported no issues INFO: Task total time: 5.804 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 8.352s INFO: Final Memory: 21M/301M INFO: ------------------------------------------------------------------------ Job succeeded

Im not sure how to get around this issue? Is it failing because its picking up errors in the code etc? Thanks

gabrie-allaigre commented 5 years ago

Hi, All issues, show new issues from branch and issues from master. Here, 145 issues from master ?