From 6be06388a1bc667a6c977d258fc6daf12355c7fc Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Wed, 6 Sep 2017 12:39:05 -0500 Subject: [PATCH] Renamed allowableStatuses to be more specific and fixed a typo. --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}" } }