mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Updated to use body-driven style of the extension.
This commit is contained in:
parent
4e2f3872d6
commit
c5137a729e
1 changed files with 7 additions and 2 deletions
9
Jenkinsfile
vendored
9
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,13 @@ pipeline {
|
||||||
echo "${scannerHome}"
|
echo "${scannerHome}"
|
||||||
sh "${scannerHome}/bin/sonar-scanner"
|
sh "${scannerHome}/bin/sonar-scanner"
|
||||||
}
|
}
|
||||||
//*/
|
*/
|
||||||
//startSonarQubeAnalysis "SonarQube_Scanner_3.0.3.778", "Staging", "${env.WORKSPACE}/sonar-project.properties"
|
//startSonarQubeAnalysis "SonarQube_Scanner_3.0.3.778", "Staging", "${env.WORKSPACE}/sonar-project.properties"
|
||||||
|
startSonarQubeAnalysis {
|
||||||
|
scanner = "SonarQube_Scanner_3.0.3.778"
|
||||||
|
server = "Staging"
|
||||||
|
pathToProjectSonarSettings = "${env.WORKSPACE}/sonar-project.properties"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue