mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-09 08:06:52 +01:00
Jenkins: Success builds when the Quality Gate is passed
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -96,14 +96,15 @@ void analyzeWith(Maven mvn) {
|
||||
}
|
||||
|
||||
boolean waitForQualityGateWebhookToBeCalled() {
|
||||
|
||||
boolean isQualityGateSucceeded = true
|
||||
timeout(time: 2, unit: 'MINUTES') { // Needed when there is no webhook for example
|
||||
def qGate = waitForQualityGate()
|
||||
echo "SonarQube Quality Gate status: ${qGate.status}"
|
||||
if (qGate.status != 'OK') {
|
||||
return false
|
||||
isQualityGateSucceeded = false
|
||||
}
|
||||
}
|
||||
return isQualityGateSucceeded
|
||||
}
|
||||
|
||||
String getCommitAuthorComplete() {
|
||||
|
||||
Reference in New Issue
Block a user