blob: 697b727febb0f3bade3ea3ba83497091ad20204d [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
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 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 }}"