mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Changing the approach to snag the workspace path.
This commit is contained in:
parent
b11aad0a20
commit
b89f313ee5
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -14,7 +14,7 @@ pipeline {
|
||||||
|
|
||||||
stage('SonarQube Analysis') {
|
stage('SonarQube Analysis') {
|
||||||
steps {
|
steps {
|
||||||
///*
|
/*
|
||||||
script {
|
script {
|
||||||
scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
|
scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,8 @@ pipeline {
|
||||||
echo "${scannerHome}"
|
echo "${scannerHome}"
|
||||||
sh "${scannerHome}/bin/sonar-scanner"
|
sh "${scannerHome}/bin/sonar-scanner"
|
||||||
}
|
}
|
||||||
//*/
|
*/
|
||||||
//sonarqubeAnalysis "SonarQube_Scanner_3.0.3.778", "Staging", "${workspace}/sonar-project.properties"
|
sonarqubeAnalysis "SonarQube_Scanner_3.0.3.778", "Staging", "${env.WORKSPACE}/sonar-project.properties"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue