Skip to content

Commit

Permalink
Merge pull request #154 from dirgim/always-check-latest-build
Browse files Browse the repository at this point in the history
When checking the status of container builds always check the latest one
  • Loading branch information
dirgim authored Mar 22, 2019
2 parents 50e1f75 + 88b96a7 commit 1c7dac4
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 @@ -28,7 +28,7 @@

# Wait container in the pipeline to start building
- name: "{{ container_config_name }} :: Wait for {{ build_config_name_files[template_name] }} to be queued"
shell: "{{ oc_bin }} get builds | grep '{{ build_config_name_files[template_name] }}'"
shell: "{{ oc_bin }} get builds | egrep \"{{ build_config_name_files[template_name] }}-[0-9]*\\s\" | sort -V | tail -n 1"
register: oc_build_result
until: oc_build_result.stdout.find(" Running ") != -1 or oc_build_result.stdout.find(" Failed ") != -1
retries: 6
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/os_temps/tasks/check_new_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Wait container in the pipeline to be finished building
- name: "{{ container_config_name }} :: Wait for {{ build_config_name_files[template_name] }} to be built and marked with latest tag"
shell: "{{ oc_bin }} get builds | grep '{{ build_config_name_files[template_name] }}'"
shell: "{{ oc_bin }} get builds | egrep \"{{ build_config_name_files[template_name] }}-[0-9]*\\s\" | sort -V | tail -n 1"
register: oc_build_result
until: (oc_build_result.stdout.find(" Running ") == -1 or oc_build_result.stdout.find(" Failed ") != -1)
retries: 300
Expand Down

0 comments on commit 1c7dac4

Please sign in to comment.