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 {
|
pipeline {
|
||||||
//environment {
|
environment {
|
||||||
//}
|
SQ_SCANNER = tool 'SonarQube Scanner 3.0.3.778';
|
||||||
|
}
|
||||||
|
|
||||||
tools {
|
tools {
|
||||||
maven 'Maven 3.5.0'
|
maven 'Maven 3.5.0'
|
||||||
|
@ -33,11 +34,8 @@ pipeline {
|
||||||
// '-Dsonar.exclusions=**/*Test*/**'
|
// '-Dsonar.exclusions=**/*Test*/**'
|
||||||
//}
|
//}
|
||||||
|
|
||||||
script {
|
|
||||||
def scannerHome = tool 'SonarQube Scanner 3.0.3.778';
|
|
||||||
}
|
|
||||||
withSonarQubeEnv('Staging') {
|
withSonarQubeEnv('Staging') {
|
||||||
sh "${scannerHome}/bin/sonar-scanner"
|
sh "${SQ_SCANNER}/bin/sonar-scanner"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue