mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Moved SQ tool lookup to environment section.
This commit is contained in:
parent
43932be6a0
commit
677f454573
1 changed files with 4 additions and 6 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -1,6 +1,7 @@
|
|||
pipeline {
|
||||
//environment {
|
||||
//}
|
||||
environment {
|
||||
SQ_SCANNER = tool 'SonarQube Scanner 3.0.3.778';
|
||||
}
|
||||
|
||||
tools {
|
||||
maven 'Maven 3.5.0'
|
||||
|
@ -33,11 +34,8 @@ pipeline {
|
|||
// '-Dsonar.exclusions=**/*Test*/**'
|
||||
//}
|
||||
|
||||
script {
|
||||
def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
|
||||
}
|
||||
withSonarQubeEnv('Staging') {
|
||||
sh "${scannerHome}/bin/sonar-scanner"
|
||||
sh "${SQ_SCANNER}/bin/sonar-scanner"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue