Update Jenkinsfile

This commit is contained in:
prasannakumar 2024-06-16 20:54:26 +05:30 committed by GitHub
parent 94b091b1f2
commit 27d3d9b3d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
Jenkinsfile vendored
View file

@ -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 {