Closed lfojacintho closed 5 years ago
Hi, I'd like to have this feature too. I want to be able to pass my branche's build if sonar scan detect issues.
@famlima Cool. We're using on our company and it helped us a lot to customize our own Quality Gate, instead of relying on Sonar limitations (hardcoded Quality Gate for short-lived branches).
We had to build and deploy the customised version, tho. It's not great, but works as a temp solution until it's merged to the main lib
This PR adds the support for the
NONE
option on the plugin propertysonar.gitlab.quality_gate_fail_mode
.Using this new mode, the plugin will ignore the Quality Gate from Sonar to break the build. This is very handy when you're using Sonarqube with Branches plugin, as the short-lived branch have only a hard-coded quality gate.
This new property allows you to customize the "Quality Gate" of your short-lived branch, by ignoring the one from Sonar and setting up your own via plugin properties
sonar.gitlab.max_*_issues_gate
.This PR is related to Issue #204