blob: 3b035f88b4a5f41cff8feab4fcf3894ad04871e8 [file] [log] [blame]
Paul Belanger8f89c272017-02-26 13:27:03 -05001- hosts: all
2 tasks:
3 - name: Find tox directories to synchrionize.
4 find:
5 file_type: directory
Paul Belanger01be2d62017-03-03 14:49:17 -05006 paths: "{{ zuul_workspace_root }}/src/{{ zuul.project }}/.tox"
Paul Belanger8f89c272017-02-26 13:27:03 -05007 # 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 Belanger174a8272017-03-14 13:20:10 -040014 dest: "{{ zuul.executor.log_root }}/tox"
Paul Belanger8f89c272017-02-26 13:27:03 -050015 mode: pull
16 src: "{{ item.path }}/log/"
17 with_items: "{{ result.files }}"