Merge "Collect logs from testing"

This commit is contained in:
Zuul 2018-02-12 00:03:09 +00:00 committed by Gerrit Code Review
commit e8b754ae13
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