Update Jenkinsfile

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

22
Jenkinsfile vendored
View file

@ -1,23 +1 @@
node('jfrognew'){
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'
}
}
}