blob: 697b727febb0f3bade3ea3ba83497091ad20204d [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.executor.log_root }}/tox"
mode: pull
src: "{{ item.path }}/log/"
with_items: "{{ result.files }}"