mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 21:45:49 +00:00
Updated the SQ steps.
This commit is contained in:
parent
1a63facf4a
commit
768da120cc
1 changed files with 13 additions and 14 deletions
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
|
@ -20,20 +20,19 @@ pipeline {
|
|||
agent any
|
||||
steps {
|
||||
// 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 ' +
|
||||
'-Dsonar.login=$SONAR_UN ' +
|
||||
'-Dsonar.password=$SONAR_PW ' +
|
||||
'-Dsonar.language=java ' +
|
||||
'-Dsonar.sources=. ' +
|
||||
'-Dsonar.tests=. ' +
|
||||
'-Dsonar.test.inclusions=**/*Test*/** ' +
|
||||
'-Dsonar.exclusions=**/*Test*/**'
|
||||
}
|
||||
*/
|
||||
//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 ' +
|
||||
// '-Dsonar.login=$SONAR_UN ' +
|
||||
// '-Dsonar.password=$SONAR_PW ' +
|
||||
// '-Dsonar.language=java ' +
|
||||
// '-Dsonar.sources=. ' +
|
||||
// '-Dsonar.tests=. ' +
|
||||
// '-Dsonar.test.inclusions=**/*Test*/** ' +
|
||||
// '-Dsonar.exclusions=**/*Test*/**'
|
||||
//}
|
||||
|
||||
withSonarQubeEnv('Staging') {
|
||||
def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
|
||||
sh "${scannerHome}/bin/sonar-scanner"
|
||||
|
|
Loading…
Reference in a new issue