Return subunit test report as artifact

When returning the subunit test result as an artifact it will be
directly linked on the build result page.

Change-Id: I1a83288ac0857333f87cd085b3e0243bd3b92fc2
This commit is contained in:
Tobias Henkel 2020-01-18 13:18:29 +01:00
parent 2410119ac9
commit 3b0fa71dd2
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2

View File

@ -23,3 +23,15 @@
src: "{{ item.path }}"
verify_host: true
with_items: "{{ subunit_files.files }}"
- name: Return artifact to Zuul
zuul_return:
data:
zuul:
artifacts:
- name: "Unit Test Report"
url: "testr_results.html"
metadata:
type: unit_test_report
when: "'testr_results.html' in item.path"
with_items: "{{ subunit_files.files }}"