zuul-jobs/roles/fetch-output-openshift/tasks/rsync.yaml
Albin Vass 66f3edc9a3 fetch-logs-openshift: fix miss when replacing item with loop_var: zj_
Change-Id: I7c9bd20ea026287724dcc0e48a614e9fa7736077
2020-05-04 23:08:29 +02:00

20 lines
625 B
YAML

---
- name: Fetch zuul-output from the pod
command: >
oc --context "{{ zj_pod.1.context }}"
--namespace "{{ zj_pod.1.namespace }}"
rsync -q --progress=false
{{ zj_pod.1.pod }}:{{ zj_output.src }}/
{{ zj_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: zj_output