82828cea50
Make it easier to find them. Change-Id: I0e8ee7e3c9f6e55461168b97525b26625eb018f0
33 lines
880 B
YAML
33 lines
880 B
YAML
- name: Check to see if coverage report exists
|
|
stat:
|
|
path: "{{ coverage_output_src }}"
|
|
register: coverage_report_stat
|
|
|
|
- when:
|
|
- zuul_success | default(true) | bool
|
|
- not coverage_report_stat.stat.exists
|
|
name: Fail if coverage job succeeded and report is not present
|
|
fail:
|
|
msg: "Coverage report was not found even though tests succeeded"
|
|
|
|
- when: coverage_report_stat.stat.exists
|
|
block:
|
|
- name: Collect coverage details output
|
|
synchronize:
|
|
dest: "{{ zuul_executor_dest }}"
|
|
mode: pull
|
|
src: "{{ coverage_output_src }}"
|
|
verify_host: true
|
|
owner: no
|
|
group: no
|
|
|
|
- name: Return artifact to Zuul
|
|
zuul_return:
|
|
data:
|
|
zuul:
|
|
artifacts:
|
|
- name: "Coverage data"
|
|
url: "cover/"
|
|
metadata:
|
|
type: coverage_data
|