Update Jenkinsfile

This commit is contained in:
ametgud4u 2020-07-12 16:52:32 +05:30 committed by GitHub
parent ac983026fb
commit ca9f60a20c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
Jenkinsfile vendored
View file

@ -12,17 +12,10 @@ node('master'){
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar'
}
stage("Quality Gate"){
timeout(time: 35, unit: 'MINUTES') {
def qg = waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
stage('postbuild'){
stage('postbuild'){
junit '**/target/surefire-reports/*.xml'
archiveArtifacts 'target/*.jar'
}
}
}
}
}
}