Paul Belanger | 8f89c27 | 2017-02-26 13:27:03 -0500 | [diff] [blame] | 1 | - hosts: all |
| 2 | tasks: |
| 3 | - name: Find tox directories to synchrionize. |
| 4 | find: |
| 5 | file_type: directory |
| 6 | paths: "/home/zuul/workspace/src/{{ zuul.project }}/.tox" |
| 7 | # NOTE(pabelanger): The .tox/log folder is empty, ignore it. |
| 8 | patterns: ^(?!log).*$ |
| 9 | use_regex: yes |
| 10 | register: result |
| 11 | |
| 12 | - name: Collect tox logs. |
| 13 | synchronize: |
Paul Belanger | 174a827 | 2017-03-14 13:20:10 -0400 | [diff] [blame] | 14 | dest: "{{ zuul.executor.log_root }}/tox" |
Paul Belanger | 8f89c27 | 2017-02-26 13:27:03 -0500 | [diff] [blame] | 15 | mode: pull |
| 16 | src: "{{ item.path }}/log/" |
| 17 | with_items: "{{ result.files }}" |