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