diff --git a/Jenkinsfile b/Jenkinsfile index f9d1df1bd..97d70c5d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,9 +9,12 @@ pipeline { stage('sonar') { steps { - sh './mvnw sonar:sonar' + withSonarQubeEnv(installationName:'sonar-1') + { + sh './mvnw clean sonar:sonar' + } } } } -} \ No newline at end of file +}