CI: Generate ARA HTML

Since move to Swift ARA database does not render server-side,
let's make it render HTML locally as suggested.

Change-Id: I1190526c02d1f312d5284544d6e5be433dd839fa
This commit is contained in:
Radosław Piliszek 2020-02-12 19:42:34 +01:00
parent 06eabcb919
commit 707f0c855e
1 changed files with 11 additions and 0 deletions

View File

@ -67,4 +67,15 @@
src: "{{ ansible_env.HOME }}/.ara/ansible.sqlite"
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
mode: pull
- name: Generate HTML from ARA database
command: "ara generate html {{ ansible_env.HOME }}/ara-html"
environment:
ARA_DATABASE: "sqlite:///{{ ansible_env.HOME }}/.ara/ansible.sqlite"
- name: Download ARA HTML
synchronize:
src: "{{ ansible_env.HOME }}/ara-html"
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
mode: pull
when: ara_stat_result.stat.exists