From 1a63facf4ab2435504c9d27e8e07f40441a68ab9 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Wed, 6 Sep 2017 09:28:37 -0500 Subject: [PATCH] Updated the SQ steps. --- Jenkinsfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 60bcb2252..4e9c46686 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,9 @@ pipeline { stage('SonarQube analysis') { agent any steps { - withSonarQubeEnv('SonarQube Scanner 3.0.3.778') { + // jenkins SQ token: 9ba8e3134a1cbc76910a73579a888b5e91df9717 + /* + withSonarQubeEnv('Staging') { sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' + '-f pom.xml ' + '-Dsonar.projectKey=com.huettermann:all:master ' + @@ -31,7 +33,12 @@ pipeline { '-Dsonar.test.inclusions=**/*Test*/** ' + '-Dsonar.exclusions=**/*Test*/**' } - } + */ + withSonarQubeEnv('Staging') { + def scannerHome = tool 'SonarQube Scanner 3.0.3.778'; + sh "${scannerHome}/bin/sonar-scanner" + } + } } /*