Update Jenkinsfile

This commit is contained in:
ametgud4u 2020-07-07 17:24:44 +05:30 committed by GitHub
parent b604ab0c97
commit ac983026fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
Jenkinsfile vendored
View file

@ -7,11 +7,6 @@ node('master'){
sh label: '', script: 'mvn clean package'
}
stage('postbuild'){
junit '**/target/surefire-reports/*.xml'
archiveArtifacts 'target/*.jar'
}
stage('Sonar') {
withSonarQubeEnv('sonar') {
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar'
@ -23,6 +18,10 @@ node('master'){
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
stage('postbuild'){
junit '**/target/surefire-reports/*.xml'
archiveArtifacts 'target/*.jar'
}
}
}
}