diff --git a/Jenkinsfile b/Jenkinsfile index 5957f9247..099c02e4d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,13 @@ stages { } } } + stage ("sonar cloud code analysis") { + steps { + dir("spring-petclinic") { + sh "./mvnw verify sonar:sonar" + } + } + } stage("deploy") { steps { dir("spring-petclinic") {