ansible-role-borgmatic/tests/collect-logs.yaml

20 lines
597 B
YAML

- hosts: all
tasks:
- name: Collect testinfra reports
synchronize:
dest: "{{ zuul_output_dir }}/logs"
src: "{{ item }}"
verify_host: true
delegate_to: "{{ inventory_hostname }}"
with_items:
- "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/junit.xml"
# TODO: Migrate to fetch-zuul-logs when
# https://review.openstack.org/#/c/583346/ is merged.
- name: Collect log output
synchronize:
dest: "{{ zuul.executor.log_root }}/"
mode: pull
src: "{{ zuul_output_dir }}/logs/"
verify_host: true