sonar-gitlab-plugin icon indicating copy to clipboard operation
sonar-gitlab-plugin copied to clipboard

publish mode + branch plugin

Open encodeering opened this issue 6 years ago • 1 comments

Hey, we are using both, gitlab and branch plugin, and it seems that the branch plugin comes with an internal quality gate.

https://docs.sonarqube.org/display/PLUG/Branch+Plugin For short-lived branches, there is a kind of hard-coded quality gate focusing only on new issues. Its status is reflected by the green|red signal associated with each short-lived branch:

status: green / OK or red / ERROR error conditions: new_bugs > 0 new_vulnerabilities > 0 new_code_smells > 0

We see an additional external job node in the pipeline, which hasn't been configured within gitlab-ci.yml, so I would assume that its provided by this plugin.

The analysis job succeeds which is fine, but the external job fails which lets the whole pipeline fail.

We would like to use the publish mode in order to see the branch analysis in sonar as well. So, would it be possible to disable the build breaker functionality in gitlab for the external node?

Info:

Sonar (7.1)
GitLab Plugin for Reporting (3.0.1)
Branch Plugin (7)


-Dsonar.host.url=${SONAR_URL} -Dsonar.login=${SONAR_LOGIN} -Dsonar.branch.name=${CI_COMMIT_REF_NAME} -Dsonar.gitlab.commit_sha=${CI_COMMIT_SHA} -Dsonar.gitlab.ref_name=${CI_COMMIT_REF_NAME} -Dsonar.gitlab.project_id=${CI_PROJECT_ID}

Cheers

encodeering avatar May 08 '18 06:05 encodeering

can sonar.gitlab.failure_notification_mode helps?

rafaelaguerra avatar Jul 04 '19 12:07 rafaelaguerra