mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Updated the SQ quality gate check to use an embedded script step.
This commit is contained in:
parent
73ca495ee7
commit
349eb685e0
1 changed files with 5 additions and 3 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -31,9 +31,11 @@ pipeline {
|
||||||
stage('SonarQube Quality Gate') {
|
stage('SonarQube Quality Gate') {
|
||||||
steps {
|
steps {
|
||||||
timeout(time: 1, unit: 'HOURS') {
|
timeout(time: 1, unit: 'HOURS') {
|
||||||
def qg = waitForQualityGate()
|
script {
|
||||||
if (qg.status != 'OK') {
|
def qg = waitForQualityGate()
|
||||||
error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
if (qg.status != 'OK') {
|
||||||
|
error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue