zuul-jobs/roles/fetch-coverage-output/tasks/main.yaml
Albin Vass ca1a1b0e8a fetch-coverage-output: do not synchronize owner
Change-Id: Ief5b58480bd97d48cf3320f28f1ad0acd3d3fe17
2020-05-18 17:04:10 +02:00

22 lines
598 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
name: Collect coverage details output
synchronize:
dest: "{{ zuul_executor_dest }}"
mode: pull
src: "{{ coverage_output_src }}"
verify_host: true
owner: no
group: no