Skip to content

Commit

Permalink
Merge pull request #55 from scoheb/fix-new-state
Browse files Browse the repository at this point in the history
Detect New state when querying for queued build
  • Loading branch information
arilivigni authored Jun 20, 2018
2 parents 024ac7e + 6d0c0d3 commit 1f351cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playbooks/roles/os_temps/tasks/build_new_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
until: (oc_build_result.stdout.find(" Pending ") == -1 or oc_build_result.stdout.find(" New ") == -1)
retries: 6
delay: 10
ignore_errors: yes
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/os_temps/tasks/setup_os_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
until: (oc_build_result.stdout.find(" Pending ") == -1 or oc_build_result.stdout.find(" New ") == -1)
retries: 6
delay: 10
ignore_errors: yes
Expand Down

0 comments on commit 1f351cc

Please sign in to comment.