diff --git a/.zuul.yaml b/.zuul.yaml index 42b3ba6..c1fabb9 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -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 diff --git a/tests/collect-logs.yaml b/tests/collect-logs.yaml new file mode 100644 index 0000000..9014f1d --- /dev/null +++ b/tests/collect-logs.yaml @@ -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