I need some help, i am trying to set the build status as "Unstable" if quality gate on sonarqube fail. Find below the configuration i've got so far:
I've found this also, but i am not sure how to integrate on my stage above:
step {
qualitygate = waitForQualityGate()
if (qualitygate.status != "OK") {
currentBuild.result = "UNSTABLE"
}
}
Any suggestion? Thanks in advance for the support,
Try this:
Inspired by Set the build unstable if sonar Quality Gate is failed