mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Moved the tool call back to a step since it wasn't being interpreted in the ENVIRONMENT section.
This commit is contained in:
parent
99e16f7c4c
commit
60a6d74586
1 changed files with 8 additions and 5 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -1,7 +1,6 @@
|
||||||
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'
|
||||||
|
@ -34,9 +33,13 @@ pipeline {
|
||||||
// '-Dsonar.exclusions=**/*Test*/**'
|
// '-Dsonar.exclusions=**/*Test*/**'
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
script {
|
||||||
|
scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
|
||||||
|
}
|
||||||
|
|
||||||
withSonarQubeEnv('Staging') {
|
withSonarQubeEnv('Staging') {
|
||||||
echo "${SQ_SCANNER}"
|
echo "${scannerHome}"
|
||||||
sh "${SQ_SCANNER}/bin/sonar-scanner"
|
sh "${scannerHome}/bin/sonar-scanner"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue