mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
137b6866d6
commit
f4c7c97b7b
1 changed files with 5 additions and 4 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -18,9 +18,10 @@ node('master'){
|
|||
}
|
||||
|
||||
stage("Quality Gate"){
|
||||
steps {
|
||||
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