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