zuul-jobs/roles/fetch-output-openshift/tasks/rsync.yaml
Tristan Cacqueray 67e2abda5b fetch-output-openshift: initial role
This change adds a new fetch-output-openshift role to be able to
fetch-output from pod.

Change-Id: I45d5115a10254432805a02a77e0ebb35d7fd2dd4
2020-01-30 20:00:14 +00:00

20 lines
610 B
YAML

---
- name: Fetch zuul-output from the pod
command: >
oc --context "{{ item.1.context }}"
--namespace "{{ item.1.namespace }}"
rsync -q --progress=false
{{ item.1.pod }}:{{ output.src }}/
{{ output.dst }}/
no_log: "{{ not zuul_log_verbose }}"
delegate_to: localhost
loop:
- src: "{{ zuul_output_dir }}/logs"
dst: "{{ log_path }}"
- src: "{{ zuul_output_dir }}/artifacts"
dst: "{{ zuul.executor.work_root }}/artifacts"
- src: "{{ zuul_output_dir }}/docs"
dst: "{{ zuul.executor.work_root }}/docs"
loop_control:
loop_var: output