mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +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 {
|
||||
//}
|
||||
|
||||
tools {
|
||||
maven 'Maven 3.5.0'
|
||||
}
|
||||
//tools {
|
||||
// maven 'Maven 3.5.0'
|
||||
//}
|
||||
|
||||
agent none
|
||||
|
||||
|
@ -33,8 +33,10 @@ pipeline {
|
|||
// '-Dsonar.exclusions=**/*Test*/**'
|
||||
//}
|
||||
|
||||
withSonarQubeEnv('Staging') {
|
||||
script {
|
||||
def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
|
||||
}
|
||||
withSonarQubeEnv('Staging') {
|
||||
sh "${scannerHome}/bin/sonar-scanner"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue