blob: c247e49ae5a2a921c41d7bc3abbb2e1623e83982 [file] [log] [blame]
---
- name: Set coverage log path
set_fact:
log_path: "{{ zuul.executor.log_root }}/"
when: log_path is not defined
- name: Check for coverage.xml
stat:
path: "{{ coverage_xml_dir }}/coverage.xml"
get_checksum: false
get_mime: false
get_md5: false
register: coverage_xml_stat
- name: Collect coverage.xml
synchronize:
src: "{{ coverage_xml_dir }}/coverage.xml"
dest: "{{ log_path }}/coverage.xml"
mode: pull
when: coverage_xml_stat.stat.exists
- name: Return site artifact location to Zuul
when: coverage_xml_stat.stat.exists
zuul_return:
data:
zuul:
artifacts:
- name: "Coverage data"
metadata:
type: "cobertura_xml"
url: "coverage.xml"