added code analysis stage

This commit is contained in:
BrahmanapallyNagaraju 2020-04-09 22:23:10 +05:30 committed by GitHub
parent 8465838ad0
commit c78cf23b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

7
Jenkinsfile vendored
View file

@ -21,6 +21,13 @@ stages {
} }
} }
} }
stage ("sonar cloud code analysis") {
steps {
dir("spring-petclinic") {
sh "./mvnw verify sonar:sonar"
}
}
}
stage("deploy") { stage("deploy") {
steps { steps {
dir("spring-petclinic") { dir("spring-petclinic") {