jenkins: add missing maven wrapper for sonarqube deployment

This commit is contained in:
Paul Campbell 2018-03-11 09:40:32 +00:00
parent bc53254cd2
commit 015aac3db6

View file

@ -39,7 +39,9 @@ pipeline {
when { expression { env.GIT_BRANCH == 'develop' } } when { expression { env.GIT_BRANCH == 'develop' } }
steps { steps {
withSonarQubeEnv('sonarqube') { withSonarQubeEnv('sonarqube') {
sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar" withMaven(maven: 'maven', jdk: 'JDK LTS') {
sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar"
}
} }
} }
} }