We have been using the following ansible playbooks for testing feature/zuulv3 of zuul. This commit copies the playbooks from zuul and imports them here. Change-Id: Ib776cdce10b1f05501c46f6cf359723960f1bc71 Depends-On: I11da723df8823091f25e2a630e80ee4270d99a9b Depends-On: Ic03634dd02d2eb1fa5aa8a38f4beb5f0ec5582c6 Co-Authored-By: Andreas Jaeger <aj@suse.com> Signed-off-by: Paul Belanger <pabelanger@redhat.com>
18 lines
537 B
YAML
18 lines
537 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Find tox directories to synchrionize.
|
|
find:
|
|
file_type: directory
|
|
paths: "{{ zuul_workspace_root }}/src/{{ zuul.project.canonical_name }}/.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 }}"
|