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