diff --git a/Jenkinsfile b/Jenkinsfile index 6ca0134f0..81ddde769 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,14 +33,14 @@ pipeline { timeout(time: 1, unit: 'HOURS') { script { // these are the statuses that we'll allow - def alowableStatuses = ['OK','WARN'] + def allowableQualityGateStatuses = ['OK','WARN'] // we need to wait for the quality check to complete - def qg = waitForQualityGate() + def qualityGate = waitForQualityGate() // if the status we got back, isn't one of the logal ones, then // we need o fail the build - if (!allowableStatuses.contains(qg.status)) { + if (!allowableQualityGateStatuses.contains(qualityGate.status)) { error "Pipeline aborted due to quality gate failure: ${qg.status}" } }