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

Sonar analysis result in not showing for successful Quality Gate in GitLab #293

Open vbhvjari opened 2 years ago

vbhvjari commented 2 years ago

Hi,

We are using GitLab plugin (version: 4.1.0-SNAPSHOT) in SonarQube 7.9.6.

We have used below properties to get sonar analysis result in GitLab:

-Dsonar.gitlab.unique_issue_per_inline=true 
-Dsonar.gitlab.project_id=${CI_PROJECT_ID} 
-Dsonar.gitlab.ref_name=${CI_COMMIT_REF_NAME} 
-Dsonar.gitlab.commit_sha=${CI_COMMIT_SHA}

We are getting expected results for each commit in GitLab when Quality Gate fails. Whereas we are not getting sonar analysis in GitLab at all when Quality gate passes successfully.

Is this expected behaviour or we are missing some configuration ?

Thanks, Vaibhav Jariwala