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

There is no comment to the commit #193

Open yurenjie1990 opened 5 years ago

yurenjie1990 commented 5 years ago

Hi, I'm trying to integrate the plugin but when I commit new code, the gitlab CI job is succeed but there is no comment to the commit.

sonarqube 7.4 community edition GitLab Community Edition 10.4.7 sonar-gitlab-plugin-4.0.0 mysql 5.7 apache-maven-3.5.0

my .gitlab-ci.yml is as follows

  stage: test
  script:
    - ci/sonar_preview.sh
  except:
    - master
  tags:
    - test2

sonar_analyze:
  stage: test
  script:
    - ci/sonar_analyze.sh
  only:
    - master
  tags:
    - test2

my sonar_preview.sh is as follows image

my CI job is succeed image

but the code I commit to test sonar has no comment image

Is there anything wrong with my configuration?

PHameete commented 4 years ago

@yurenjie1990 did you figure this out? I'm using a very similar config and also don't see comments on my commits.