summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2017-09-03 18:03:01 -0500
committerMonty Taylor <mordred@inaugust.com>2017-09-03 18:11:41 -0500
commitfb4ba8cd5bf31331e58b905339836503c7028f14 (patch)
treedf8d6aa64d6cb6d7ed0bb558a7d95966132b1e33 /playbooks
parent2463f3c19e17402220452a4c1db6ba3f358cd84b (diff)
downloadzuul-fb4ba8cd5bf31331e58b905339836503c7028f14.tar.gz
Move ara output generation to post playbook
When there are issues, we hit POST FAILURE because ara generate gets skipped. Move it. Change-Id: Ib54f78c548999ed330d44e77ecbfc90944fec459
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/zuul-stream/functional.yaml6
-rw-r--r--playbooks/zuul-stream/post-ara.yaml14
-rw-r--r--playbooks/zuul-stream/post.yaml1
3 files changed, 14 insertions, 7 deletions
diff --git a/playbooks/zuul-stream/functional.yaml b/playbooks/zuul-stream/functional.yaml
index 7b5b84f9e..927503772 100644
--- a/playbooks/zuul-stream/functional.yaml
+++ b/playbooks/zuul-stream/functional.yaml
@@ -58,9 +58,3 @@
shell: |
egrep "^.+\| node1 \| OSError.+\/failure-itemloop\/" job-output.txt
egrep "^.+\| node2 \| OSError.+\/failure-itemloop\/" job-output.txt
-
- - name: Generate ARA html
- command: ara generate html ara-output
-
- - name: Compress ARA html
- command: gzip --recursive --best ara-output
diff --git a/playbooks/zuul-stream/post-ara.yaml b/playbooks/zuul-stream/post-ara.yaml
new file mode 100644
index 000000000..e666d21ea
--- /dev/null
+++ b/playbooks/zuul-stream/post-ara.yaml
@@ -0,0 +1,14 @@
+- hosts: controller
+ tasks:
+
+ - name: Generate ARA html
+ command: ara generate html ara-output
+
+ - name: Compress ARA html
+ command: gzip --recursive --best ara-output
+
+ - name: Fetch ARA files
+ synchronize:
+ src: "{{ ansible_user_dir }}/ara-output"
+ dest: "{{ zuul.executor.log_root }}/stream-files"
+ mode: pull
diff --git a/playbooks/zuul-stream/post.yaml b/playbooks/zuul-stream/post.yaml
index f3d4f9c8e..2c717a82e 100644
--- a/playbooks/zuul-stream/post.yaml
+++ b/playbooks/zuul-stream/post.yaml
@@ -23,4 +23,3 @@
- ansible.cfg
- stream-job-output.txt
- job-output.json
- - ara-output