Moved some of the code into a 'script' step.

This commit is contained in:
Christopher Jones 2017-09-06 10:43:59 -05:00
parent 768da120cc
commit 9ee0b657e2

10
Jenkinsfile vendored
View file

@ -2,9 +2,9 @@ pipeline {
//environment { //environment {
//} //}
tools { //tools {
maven 'Maven 3.5.0' // maven 'Maven 3.5.0'
} //}
agent none agent none
@ -33,8 +33,10 @@ pipeline {
// '-Dsonar.exclusions=**/*Test*/**' // '-Dsonar.exclusions=**/*Test*/**'
//} //}
withSonarQubeEnv('Staging') { script {
def scannerHome = tool 'SonarQube Scanner 3.0.3.778'; def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
}
withSonarQubeEnv('Staging') {
sh "${scannerHome}/bin/sonar-scanner" sh "${scannerHome}/bin/sonar-scanner"
} }
} }