Adding sonar

This commit is contained in:
Jason House
2020-07-28 17:20:10 +09:00
parent 7bad4104bd
commit c92f558581

6
Jenkinsfile vendored
View File

@@ -8,12 +8,12 @@ pipeline {
sh './minify'
}
}
stage('Build Jars') {
steps {
sh 'mvn clean install pmd:pmd checkstyle:checkstyle spotbugs:spotbugs $SONAR_MAVEN_GOAL'
sh 'mvn clean install pmd:pmd checkstyle:checkstyle spotbugs:spotbugs'
withSonarQubeEnv(credentialsId: 'c273ab1594d36799589bff7512b5cfcafff617b1', installationName: 'SonarQube') { // You can override the credential to be used
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar'
}
}
}
}