Merge "Collect logs from testing"
This commit is contained in:
commit
e08a346693
|
@ -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:
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue