From ce1b326c79e16ce50991c5890efd50320c76cab7 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Jun 27 2018 11:37:33 +0000 Subject: Jenkinsfile: need to wait for all 6 pods to be ready If you omit this arg to .untilEach it defaults to waiting for 1 element to satisfy the condition, not *all* elements as you might expect. --- diff --git a/Jenkinsfile b/Jenkinsfile index c14b947..7dadc5a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -174,7 +174,7 @@ node('fedora-27') { echo "Waiting for pods with label environment=${environment_label} to become Ready" def pods = openshift.selector('pods', ['environment': environment_label]) timeout(10) { - pods.untilEach { + pods.untilEach(6) { def conds = it.object().status.conditions for (int i = 0; i < conds.size(); i++) { if (conds[i].type == 'Ready' && conds[i].status == 'True') {