mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +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 {
|
||||
environment {
|
||||
SQ_SCANNER = tool 'SonarQube_Scanner_3.0.3.778';
|
||||
}
|
||||
//environment {
|
||||
//}
|
||||
|
||||
tools {
|
||||
maven 'Maven 3.5.0'
|
||||
|
@ -33,10 +32,14 @@ pipeline {
|
|||
// '-Dsonar.test.inclusions=**/*Test*/** ' +
|
||||
// '-Dsonar.exclusions=**/*Test*/**'
|
||||
//}
|
||||
|
||||
script {
|
||||
scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
|
||||
}
|
||||
|
||||
withSonarQubeEnv('Staging') {
|
||||
echo "${SQ_SCANNER}"
|
||||
sh "${SQ_SCANNER}/bin/sonar-scanner"
|
||||
echo "${scannerHome}"
|
||||
sh "${scannerHome}/bin/sonar-scanner"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue