From c5137a729ec1c975f50f4ad34c48649aa7bf5337 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Thu, 7 Sep 2017 11:20:15 -0500 Subject: [PATCH] Updated to use body-driven style of the extension. --- Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ede86b375..1b1b2d339 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ pipeline { stage('SonarQube Analysis') { steps { - ///* + /* script { scannerHome = tool 'SonarQube_Scanner_3.0.3.778'; } @@ -23,8 +23,13 @@ pipeline { echo "${scannerHome}" sh "${scannerHome}/bin/sonar-scanner" } - //*/ + */ //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" + } } }