Update Jenkinsfile

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

7
Jenkinsfile vendored
View file

@ -34,10 +34,11 @@ pipeline {
}
}
}
stage("Quality Gate") {
steps {
stage("Quality Gate"){
timeout(time: 1, unit: 'HOURS') {
waitForQualityGate abortPipeline: true
def qg = waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
}
}