Use correct sonarqube environment in jenkins

This commit is contained in:
Paul Campbell 2018-06-18 16:34:14 +01:00
parent 88452071f8
commit fe12c17a62

View file

@ -39,7 +39,7 @@ pipeline {
stage('SonarQube (gitlab only)') { stage('SonarQube (gitlab only)') {
when { expression { env.GIT_URL.startsWith('https://gitlab.com') } } when { expression { env.GIT_URL.startsWith('https://gitlab.com') } }
steps { steps {
withSonarQubeEnv('sonarqube') { withSonarQubeEnv('sonarqube-gitlab') {
withMaven(maven: 'maven', jdk: 'JDK LTS') { withMaven(maven: 'maven', jdk: 'JDK LTS') {
sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar" sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar"
} }