Merge pull request #6639 from ryanpetrello/isolated-rsync-race

fix a race condition in isolated stdout processing
This commit is contained in:
Ryan Petrello 2017-06-20 09:00:23 -04:00 committed by GitHub
commit 8ae8e0bf2d

View File

@ -8,6 +8,10 @@
tasks:
- shell: "tower-expect is-alive {{src}}"
register: is_alive
ignore_errors: true
- name: copy artifacts from the isolated host
synchronize:
src: "{{src}}/artifacts/"
@ -15,6 +19,6 @@
mode: pull
recursive: yes
- shell: "tower-expect is-alive {{src}}"
register: is_alive
failed_when: "is_alive.rc == 0"
- fail:
msg: "isolated task is still running"
when: "is_alive.rc == 0"