mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Moved some of the code into a 'script' step.
This commit is contained in:
parent
768da120cc
commit
9ee0b657e2
1 changed files with 6 additions and 4 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -2,9 +2,9 @@ pipeline {
|
||||||
//environment {
|
//environment {
|
||||||
//}
|
//}
|
||||||
|
|
||||||
tools {
|
//tools {
|
||||||
maven 'Maven 3.5.0'
|
// maven 'Maven 3.5.0'
|
||||||
}
|
//}
|
||||||
|
|
||||||
agent none
|
agent none
|
||||||
|
|
||||||
|
@ -33,8 +33,10 @@ pipeline {
|
||||||
// '-Dsonar.exclusions=**/*Test*/**'
|
// '-Dsonar.exclusions=**/*Test*/**'
|
||||||
//}
|
//}
|
||||||
|
|
||||||
withSonarQubeEnv('Staging') {
|
script {
|
||||||
def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
|
def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
|
||||||
|
}
|
||||||
|
withSonarQubeEnv('Staging') {
|
||||||
sh "${scannerHome}/bin/sonar-scanner"
|
sh "${scannerHome}/bin/sonar-scanner"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue