Update Jenkinsfile

This commit is contained in:
ametgud4u 2020-07-07 00:45:24 +05:30 committed by GitHub
parent a00bb36810
commit 5c6309ceaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

27
Jenkinsfile vendored
View file

@ -1 +1,28 @@
node('master'){
stage('scm'){
git 'https://github.com/ametgud4u/spring-petclinic.git'
}
stage('build'){
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'
}
stage("Quality Gate") {
steps {
timeout(time: 1, unit: 'HOURS') {
waitForQualityGate abortPipeline: true
}
}
}
}
}