blob: 786a984d284f653449c459d9f79e469f119346cf [file] [log] [blame]
- hosts: all
tasks:
- name: Find tox directories to synchrionize.
find:
file_type: directory
paths: "/home/zuul/workspace/src/{{ zuul.project }}/.tox"
# NOTE(pabelanger): The .tox/log folder is empty, ignore it.
patterns: ^(?!log).*$
use_regex: yes
register: result
- name: Collect tox logs.
synchronize:
dest: "{{ zuul.launcher.log_root }}/tox"
mode: pull
src: "{{ item.path }}/log/"
with_items: "{{ result.files }}"