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

20
Jenkinsfile vendored
View file

@ -34,14 +34,18 @@ pipeline {
} }
} }
} }
stage("Quality Gate"){ stage("Quality Gate") {
timeout(time: 1, unit: 'HOURS') { steps {
def qg = waitForQualityGate() timeout(time: 1, unit: 'HOURS') {
if (qg.status != 'OK') { script {
error "Pipeline aborted due to quality gate failure: ${qg.status}" def qg = waitForQualityGate()
} 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'