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

gitlab-ci sonar error #41

Open loverto opened 7 years ago

loverto commented 7 years ago

56444 [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project bksx-springmvc: Failed to execute project builder: com.talanlabs.sonar.plugins.gitlab.CommitProjectBuilder: Unable to perform GitLab WS operation: http://130.10.8.210/api/v3/projects/40/repository/commits/CI_COMMIT_SHA/comments -> [Help 1]

gabrie-allaigre commented 7 years ago

Hi.... -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA

loverto commented 7 years ago

Thanks ,But I found that the problem has been changed, and now the problem is?

75271 [INFO] Report status=failed, desc=SonarQube reported 205 issues, with 30 critical (fail) and 88 major and 82 minor and 5 info

loverto commented 7 years ago

gitlab version 9.2.1 sonarqube version 6.3.1

gabrie-allaigre commented 7 years ago

By default, plugin fail if critical issue > 0 (here 30 critical (fail) )

loverto commented 7 years ago

So how do i set it up?

gabrie-allaigre commented 7 years ago

By properties sonar.gitlab.max_blocker_issues_gate, sonar.gitlab.max_critical_issues_gate (show README) or by SonarQube -> Project -> Administration -> General Settings -> GitLab

loverto commented 7 years ago

SonarQube -> Project -> Administration -> General Settings -> GitLab no way ?

gabrie-allaigre commented 7 years ago

image

loverto commented 7 years ago

version 2.0.1

gabrie-allaigre commented 7 years ago

?

loverto commented 7 years ago

images not upload 。。。。。
My interface is not the same for you? Google Chrome problem ?

gabrie-allaigre commented 7 years ago

In SonarQube, project settings Administration -> General Settings -> GitLab Image is ok (refresh ?)

loverto commented 7 years ago

sonar

gabrie-allaigre commented 7 years ago

No, use general settings for Project, no global general settings

loverto commented 7 years ago

Where is the report?

gabrie-allaigre commented 7 years ago

Mail or in commit in gitlab

gabrie-allaigre commented 7 years ago

ok ?

loverto commented 7 years ago

did not find

gabrie-allaigre commented 7 years ago

In GitLab Repository -> Commits -> change branch and check comment on commit