Collect logs from testing

It is helpful to have logs to debug failures.

Change-Id: I3d5170713a031dc8ccb4772a7778bec1e63ffa15
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-02-09 17:37:33 -05:00
parent d8faf2ffc3
commit 19929aa259
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
- job:
name: ansible-role-nodepool
run: tests/test.yaml
post-run: tests/collect-logs.yaml
required-projects:
- name: openstack-infra/nodepool
override-branch: feature/zuulv3

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

@ -0,0 +1,10 @@
- hosts: all
tasks:
- name: Collect nodepool log files
synchronize:
dest: "{{ zuul.executor.log_root }}/logs"
mode: pull
rsync_opts:
- "--relative"
src: /var/log/nodepool
verify_host: true