Moved SQ tool lookup to environment section.

This commit is contained in:
Christopher Jones 2017-09-06 10:56:47 -05:00
parent 43932be6a0
commit 677f454573

10
Jenkinsfile vendored
View file

@ -1,6 +1,7 @@
pipeline { pipeline {
//environment { environment {
//} SQ_SCANNER = tool 'SonarQube Scanner 3.0.3.778';
}
tools { tools {
maven 'Maven 3.5.0' maven 'Maven 3.5.0'
@ -33,11 +34,8 @@ pipeline {
// '-Dsonar.exclusions=**/*Test*/**' // '-Dsonar.exclusions=**/*Test*/**'
//} //}
script {
def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
}
withSonarQubeEnv('Staging') { withSonarQubeEnv('Staging') {
sh "${scannerHome}/bin/sonar-scanner" sh "${SQ_SCANNER}/bin/sonar-scanner"
} }
} }
} }