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/" +