From 0d53e47f5e672478f3cbe1f5183bf1b9b460b448 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 23 Feb 2017 17:08:58 -0500 Subject: [PATCH] Copy logs to launcher Change-Id: Ibe0abe1c058b708b34799633f249c9b14426d993 Signed-off-by: Paul Belanger --- .zuul.yaml | 1 + playbooks/post.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 playbooks/post.yaml diff --git a/.zuul.yaml b/.zuul.yaml index cc71568268..db03673e04 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,6 +1,7 @@ - job: name: python-linters pre-run: pre + post-run: post nodes: - name: worker image: ubuntu-xenial diff --git a/playbooks/post.yaml b/playbooks/post.yaml new file mode 100644 index 0000000000..31570bc65a --- /dev/null +++ b/playbooks/post.yaml @@ -0,0 +1,14 @@ +- hosts: all + tasks: + - name: Collect console log. + synchronize: + dest: "{{ zuul.launcher.log_root }}" + mode: pull + src: "/tmp/console.log" + + - name: Collect tox logs. + synchronize: + dest: "{{ zuul.launcher.log_root }}/tox/" + mode: pull + src: "/home/zuul/workspace/src/{{ zuul.project }}/.tox/pep8/log/" +