blob: 3b035f88b4a5f41cff8feab4fcf3894ad04871e8 [file] [log] [blame]
- hosts: all
tasks:
- name: Find tox directories to synchrionize.
find:
file_type: directory
paths: "{{ zuul_workspace_root }}/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 }}"