Updated the SQ steps.

This commit is contained in:
Christopher Jones 2017-09-06 10:35:08 -05:00
parent 1a63facf4a
commit 768da120cc

27
Jenkinsfile vendored
View file

@ -20,20 +20,19 @@ pipeline {
agent any agent any
steps { steps {
// jenkins SQ token: 9ba8e3134a1cbc76910a73579a888b5e91df9717 // jenkins SQ token: 9ba8e3134a1cbc76910a73579a888b5e91df9717
/* //withSonarQubeEnv('Staging') {
withSonarQubeEnv('Staging') { // sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' +
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' + // '-f pom.xml ' +
'-f pom.xml ' + // '-Dsonar.projectKey=com.huettermann:all:master ' +
'-Dsonar.projectKey=com.huettermann:all:master ' + // '-Dsonar.login=$SONAR_UN ' +
'-Dsonar.login=$SONAR_UN ' + // '-Dsonar.password=$SONAR_PW ' +
'-Dsonar.password=$SONAR_PW ' + // '-Dsonar.language=java ' +
'-Dsonar.language=java ' + // '-Dsonar.sources=. ' +
'-Dsonar.sources=. ' + // '-Dsonar.tests=. ' +
'-Dsonar.tests=. ' + // '-Dsonar.test.inclusions=**/*Test*/** ' +
'-Dsonar.test.inclusions=**/*Test*/** ' + // '-Dsonar.exclusions=**/*Test*/**'
'-Dsonar.exclusions=**/*Test*/**' //}
}
*/
withSonarQubeEnv('Staging') { withSonarQubeEnv('Staging') {
def scannerHome = tool 'SonarQube Scanner 3.0.3.778'; def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
sh "${scannerHome}/bin/sonar-scanner" sh "${scannerHome}/bin/sonar-scanner"