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
This commit is contained in:
Monty Taylor 2017-09-03 18:03:01 -05:00
parent 2463f3c19e
commit fb4ba8cd5b
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
4 changed files with 17 additions and 8 deletions

View File

@ -19,7 +19,9 @@
nodes: zuul-functional nodes: zuul-functional
pre-run: playbooks/zuul-stream/pre pre-run: playbooks/zuul-stream/pre
run: playbooks/zuul-stream/functional run: playbooks/zuul-stream/functional
post-run: playbooks/zuul-stream/post post-run:
- playbooks/zuul-stream/post
- playbooks/zuul-stream/post-ara
required-projects: required-projects:
- openstack/ara - openstack/ara

View File

@ -58,9 +58,3 @@
shell: | shell: |
egrep "^.+\| node1 \| OSError.+\/failure-itemloop\/" job-output.txt egrep "^.+\| node1 \| OSError.+\/failure-itemloop\/" job-output.txt
egrep "^.+\| node2 \| 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

View File

@ -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

View File

@ -23,4 +23,3 @@
- ansible.cfg - ansible.cfg
- stream-job-output.txt - stream-job-output.txt
- job-output.json - job-output.json
- ara-output