Moved the tool call back to a step since it wasn't being interpreted in the ENVIRONMENT section.

This commit is contained in:
Christopher Jones 2017-09-06 11:26:56 -05:00
parent 99e16f7c4c
commit 60a6d74586

13
Jenkinsfile vendored
View file

@ -1,7 +1,6 @@
pipeline {
environment {
SQ_SCANNER = tool 'SonarQube_Scanner_3.0.3.778';
}
//environment {
//}
tools {
maven 'Maven 3.5.0'
@ -33,10 +32,14 @@ pipeline {
// '-Dsonar.test.inclusions=**/*Test*/** ' +
// '-Dsonar.exclusions=**/*Test*/**'
//}
script {
scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
}
withSonarQubeEnv('Staging') {
echo "${SQ_SCANNER}"
sh "${SQ_SCANNER}/bin/sonar-scanner"
echo "${scannerHome}"
sh "${scannerHome}/bin/sonar-scanner"
}
}
}