mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +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
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -31,6 +31,7 @@ pipeline {
|
||||||
stage('SonarQube Quality Gate') {
|
stage('SonarQube Quality Gate') {
|
||||||
steps {
|
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}"
|
||||||
|
@ -38,6 +39,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Approve for QA') {
|
stage('Approve for QA') {
|
||||||
steps {
|
steps {
|
||||||
|
|
Loading…
Reference in a new issue