JK
This commit is contained in:
parent
0a1a34a3d0
commit
2f161ab232
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -155,6 +155,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
// Wait for the Quality Gate result and fail fast on non-green outcomes.
|
// Wait for the Quality Gate result and fail fast on non-green outcomes.
|
||||||
timeout(time: 15, unit: 'MINUTES') {
|
timeout(time: 15, unit: 'MINUTES') {
|
||||||
|
script {
|
||||||
def qualityGate = waitForQualityGate()
|
def qualityGate = waitForQualityGate()
|
||||||
if (qualityGate.status != 'OK') {
|
if (qualityGate.status != 'OK') {
|
||||||
error "SonarQube Quality Gate failed: ${qualityGate.status}"
|
error "SonarQube Quality Gate failed: ${qualityGate.status}"
|
||||||
@ -162,6 +163,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Archive') {
|
stage('Archive') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user