From 6a0f1822b12c2ded24634444936ba115ed84aeba Mon Sep 17 00:00:00 2001 From: Scott Hebert Date: Wed, 20 Jun 2018 11:10:56 -0400 Subject: [PATCH] use Running to detect queued --- playbooks/roles/os_temps/tasks/build_new_app.yml | 2 +- playbooks/roles/os_temps/tasks/setup_os_templates.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/os_temps/tasks/build_new_app.yml b/playbooks/roles/os_temps/tasks/build_new_app.yml index 77055e24..8b79f8d5 100644 --- a/playbooks/roles/os_temps/tasks/build_new_app.yml +++ b/playbooks/roles/os_temps/tasks/build_new_app.yml @@ -9,7 +9,7 @@ - name: "{{ container_config_name }} :: Wait for {{ build_config_name_file.stdout }} to be queued" shell: "{{ oc_bin }} get builds | grep '{{ build_config_name_file.stdout }}'" register: oc_build_result - until: (oc_build_result.stdout.find(" Pending ") == -1 or oc_build_result.stdout.find(" New ") == -1) + until: oc_build_result.stdout.find(" Running ") != -1 retries: 6 delay: 10 ignore_errors: yes diff --git a/playbooks/roles/os_temps/tasks/setup_os_templates.yml b/playbooks/roles/os_temps/tasks/setup_os_templates.yml index 5de84191..2c6f7293 100644 --- a/playbooks/roles/os_temps/tasks/setup_os_templates.yml +++ b/playbooks/roles/os_temps/tasks/setup_os_templates.yml @@ -108,7 +108,7 @@ - name: "{{ container_config_name }} :: Wait for {{ build_config_name_file.stdout }} to be queued :: FINAL ATTEMPT" shell: "{{ oc_bin }} get builds | grep '{{ build_config_name_file.stdout }}'" register: oc_build_result - until: (oc_build_result.stdout.find(" Pending ") == -1 or oc_build_result.stdout.find(" New ") == -1) + until: oc_build_result.stdout.find(" Running ") != -1 retries: 6 delay: 10 ignore_errors: yes