mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
c86dee0329
commit
94b091b1f2
1 changed files with 6 additions and 5 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -35,9 +35,10 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Quality Gate"){
|
stage("Quality Gate"){
|
||||||
steps {
|
|
||||||
timeout(time: 1, unit: 'HOURS') {
|
timeout(time: 1, unit: 'HOURS') {
|
||||||
waitForQualityGate abortPipeline: true
|
def qg = waitForQualityGate()
|
||||||
|
if (qg.status != 'OK') {
|
||||||
|
error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue