mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Updated the SQ steps.
This commit is contained in:
parent
b5f3e99cf4
commit
1a63facf4a
1 changed files with 9 additions and 2 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -19,7 +19,9 @@ pipeline {
|
||||||
stage('SonarQube analysis') {
|
stage('SonarQube analysis') {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
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 ' +
|
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 ' +
|
||||||
|
@ -31,7 +33,12 @@ pipeline {
|
||||||
'-Dsonar.test.inclusions=**/*Test*/** ' +
|
'-Dsonar.test.inclusions=**/*Test*/** ' +
|
||||||
'-Dsonar.exclusions=**/*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