Updated to use body-driven style of the extension.

This commit is contained in:
Christopher Jones 2017-09-07 11:20:15 -05:00
parent 4e2f3872d6
commit c5137a729e

9
Jenkinsfile vendored
View file

@ -14,7 +14,7 @@ pipeline {
stage('SonarQube Analysis') { stage('SonarQube Analysis') {
steps { steps {
///* /*
script { script {
scannerHome = tool 'SonarQube_Scanner_3.0.3.778'; scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
} }
@ -23,8 +23,13 @@ pipeline {
echo "${scannerHome}" echo "${scannerHome}"
sh "${scannerHome}/bin/sonar-scanner" sh "${scannerHome}/bin/sonar-scanner"
} }
//*/ */
//startSonarQubeAnalysis "SonarQube_Scanner_3.0.3.778", "Staging", "${env.WORKSPACE}/sonar-project.properties" //startSonarQubeAnalysis "SonarQube_Scanner_3.0.3.778", "Staging", "${env.WORKSPACE}/sonar-project.properties"
startSonarQubeAnalysis {
scanner = "SonarQube_Scanner_3.0.3.778"
server = "Staging"
pathToProjectSonarSettings = "${env.WORKSPACE}/sonar-project.properties"
}
} }
} }