zuul-jobs/roles/emit-ara-html/tasks/main.yaml
James E. Blair a35c2ad35e Ignore errors from ara generate
If we use emit-ara-html in a base job post playbook, and it fails,
we won't upload the log files that we *do* have.

Ignore errors from ara generate and compress.

Also, let's call a space a space.

Change-Id: Ie6d41e829b0edb105d205997766c5d87022a16b5
2017-09-04 16:08:15 -07:00

21 lines
596 B
YAML

- name: Check for ARA db
stat:
path: "{{ zuul.executor.work_root }}/.ara/ansible.sqlite"
register: ara_db_stat
- name: Check for ARA install
command: which ara
ignore_errors: yes
register: ara_command_type
when: ara_db_stat.stat.exists
- name: Generate ARA html output
command: "ara generate html {{ zuul.executor.log_root }}/ara"
ignore_errors: yes
when: ara_command_type|succeeded and not ara_command_type|skipped
- name: Compress ARA html output
command: gzip --recursive --best {{ zuul.executor.log_root }}/ara
ignore_errors: yes
when: ara_compress_html | bool