diff --git a/Jenkinsfile b/Jenkinsfile index b1a0f4a6e..1a3217103 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,5 +20,21 @@ pipeline { """ } } + + stage("Sonar-Scanning") { + steps { + withSonarQubeEnv('sonarqube') { + sh """ + + ${tool 'SonarScanner'}/bin/sonar-scanner \ + -Dsonar.projectKey=spring-petclinic \ + -Dsonar.projectName=spring-petclinic\ + -Dsonar.sources=. \ + -Dsonar.sourceEncoding=UTF-8 + """ + } + } + } + } } \ No newline at end of file