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
c86dee0329
commit
94b091b1f2
1 changed files with 6 additions and 5 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -34,13 +34,14 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Quality Gate") {
|
stage("Quality Gate"){
|
||||||
steps {
|
timeout(time: 1, unit: 'HOURS') {
|
||||||
timeout(time: 1, unit: 'HOURS') {
|
def qg = waitForQualityGate()
|
||||||
waitForQualityGate abortPipeline: true
|
if (qg.status != 'OK') {
|
||||||
|
error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Maven Package') {
|
stage('Maven Package') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn clean package -DskipTests'
|
sh 'mvn clean package -DskipTests'
|
||||||
|
|
Loading…
Reference in a new issue