Merge "Collect logs from testing"

This commit is contained in:
Zuul 2018-02-08 18:11:31 +00:00 committed by Gerrit Code Review
commit e08a346693
2 changed files with 17 additions and 0 deletions

View File

@ -1,6 +1,7 @@
- job:
name: ansible-role-zuul
run: tests/test.yaml
post-run: tests/collect-logs.yaml
required-projects:
- name: openstack-infra/zuul
roles:

16
tests/collect-logs.yaml Normal file
View File

@ -0,0 +1,16 @@
- hosts: all
tasks:
- name: Ensure logs directory exists
file:
path: "{{ zuul.executor.log_root }}/logs"
state: directory
delegate_to: localhost
- name: Collect zuul log files
synchronize:
dest: "{{ zuul.executor.log_root }}/logs"
mode: pull
rsync_opts:
- "--relative"
src: /var/log/zuul
verify_host: true