mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 21:45:49 +00:00
Removed code that has now been pushed into libraries.
This commit is contained in:
parent
e2cbcba998
commit
a9c68de4af
1 changed files with 0 additions and 27 deletions
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
|
@ -14,16 +14,6 @@ pipeline {
|
||||||
|
|
||||||
stage('SonarQube Analysis') {
|
stage('SonarQube Analysis') {
|
||||||
steps {
|
steps {
|
||||||
/*
|
|
||||||
script {
|
|
||||||
scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
|
|
||||||
}
|
|
||||||
|
|
||||||
withSonarQubeEnv('Staging') {
|
|
||||||
echo "${scannerHome}"
|
|
||||||
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,23 +23,6 @@ pipeline {
|
||||||
agent none
|
agent none
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
/*
|
|
||||||
timeout(time: 1, unit: 'HOURS') {
|
|
||||||
script {
|
|
||||||
// these are the statuses that we'll allow
|
|
||||||
def allowableQualityGateStatuses = ['OK', 'WARN']
|
|
||||||
|
|
||||||
// we need to wait for the quality check to complete
|
|
||||||
def qualityGate = waitForQualityGate()
|
|
||||||
|
|
||||||
// if the status we got back, isn't one of the logal ones, then
|
|
||||||
// we need to fail the build
|
|
||||||
if (!allowableQualityGateStatuses.contains(qualityGate.status)) {
|
|
||||||
error "Pipeline aborted due to quality gate failure: ${qualityGate.status}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
waitForSonarQubeAnalysis 60, ['OK','WARN']
|
waitForSonarQubeAnalysis 60, ['OK','WARN']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue