zuul: adjust static report build location

At the end of CI jobs that involve running Ansible playbooks which take
care of integration tests, we generate a static report that is linked in
the Zuul build artifacts.

Putting it in the server directory makes sense and it's easier to align
everything with that.

Change-Id: I3070efd025ed63591b888e721e8556c3bac1d2b7
This commit is contained in:
David Moreau Simard 2020-04-30 19:00:59 -04:00
parent ab14a35dc4
commit 5fa345dc92
No known key found for this signature in database
GPG Key ID: 938880DAFC753E80
3 changed files with 7 additions and 12 deletions

View File

@ -173,4 +173,4 @@
ignore_errors: yes
- name: Generate static report
command: ara-manage generate {{ ara_api_root_dir }}/static
command: ara-manage generate {{ ara_api_root_dir }}/server/static

View File

@ -110,7 +110,7 @@
ignore_errors: yes
- name: Generate static report
command: ara-manage generate {{ ara_api_root_dir }}/static
command: ara-manage generate {{ ara_api_root_dir }}/server/static
- name: List static report files
command: ls -alR {{ ara_api_root_dir }}/static
command: ls -alR {{ ara_api_root_dir }}/server/static

View File

@ -34,18 +34,13 @@
command: cp -rp {{ ara_api_root_dir }}/server {{ ansible_user_dir }}/zuul-output/logs/server
ignore_errors: yes
# Static report is generated with ara-manage generate in test_tasks.yaml
- name: Recover static report
command: cp -rp {{ ara_api_root_dir }}/static {{ ansible_user_dir }}/zuul-output/logs/static
ignore_errors: yes
- name: Link the static report to the Zuul build with multiple nodes
zuul_return:
data:
zuul:
artifacts:
- name: "Static report for {{ inventory_hostname }}"
url: "{{ inventory_hostname }}/static/"
- name: "Integration test static report for {{ inventory_hostname }}"
url: "{{ inventory_hostname }}/server/static/index.html"
when: groups['all'] | length > 1
- name: Link the static report to the Zuul build with a single node
@ -53,8 +48,8 @@
data:
zuul:
artifacts:
- name: Static report
url: "static/"
- name: Integration test static report
url: "server/static/index.html"
when: groups['all'] | length == 1
- name: Generate Zuul ARA report