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

Comments not created #200

Open jorgemfm opened 5 years ago

jorgemfm commented 5 years ago

Gitlab: 11.5.1 Sonarqube: 7.4 Plugin: 4.0.0

Hi,

I have successfully run a pipeline with no errors, but comments are not beeing inserted on gitlab (inline and global)

Last lines of the log:

...
16:14:21.942 INFO: ANALYSIS SUCCESSFUL
16:14:22.123 DEBUG: Post-jobs : GitLab Commit Issue Publisher
16:14:22.123 INFO: Executing post-job 'GitLab Commit Issue Publisher'
16:14:23.425 DEBUG: getPatchPositionsToLineMapping {94bef7d49e398ccbd2a68bdb6958a9b1e047a8cb={src/modules/administration/abbreviations/index.js=[Line{number=50, content='        eval("4+4");'}]}}
16:14:23.711 INFO: Report status=success, desc=SonarQube reported no issues
16:14:24.468 INFO: Task total time: 20.803 s
16:14:24.590 INFO: ------------------------------------------------------------------------
16:14:24.590 INFO: EXECUTION SUCCESS
16:14:24.590 INFO: ------------------------------------------------------------------------
...

sonar_gitlab

pedroIsai21 commented 5 years ago

Gitlab: 11.5.1 Sonarqube: 7.4 Plugin: 4.0.0

Hi,

I have successfully run a pipeline with no errors, but comments are not beeing inserted on gitlab (inline and global)

Last lines of the log:

...
16:14:21.942 INFO: ANALYSIS SUCCESSFUL
16:14:22.123 DEBUG: Post-jobs : GitLab Commit Issue Publisher
16:14:22.123 INFO: Executing post-job 'GitLab Commit Issue Publisher'
16:14:23.425 DEBUG: getPatchPositionsToLineMapping {94bef7d49e398ccbd2a68bdb6958a9b1e047a8cb={src/modules/administration/abbreviations/index.js=[Line{number=50, content='        eval("4+4");'}]}}
16:14:23.711 INFO: Report status=success, desc=SonarQube reported no issues
16:14:24.468 INFO: Task total time: 20.803 s
16:14:24.590 INFO: ------------------------------------------------------------------------
16:14:24.590 INFO: EXECUTION SUCCESS
16:14:24.590 INFO: ------------------------------------------------------------------------
...

sonar_gitlab

Have you fixed the issue?

ndesai15 commented 4 years ago

Hello, I am new to this plugin. Can you help me to get start on this?

  1. Do I need to perform any extra configurations on gitlab side to use this plugin?
  2. I am using sonar-scanner but when i run my pipeline, it shows an error of "sonar-scanner: command not found".

Thank you in advance.