zuul-jobs/roles/prepare-workspace-openshift/tasks/rsync.yaml
Tristan de Cacqueray 517bc81404 Add prepare-workspace-openshift role
Change-Id: I41ce5a1ec5ca8b1b101af77169e31fc4a9131ae9
2019-09-09 13:44:27 +00:00

18 lines
472 B
YAML

---
- name: Create src directory
command: >
oc --context "{{ item.1.context }}"
--namespace "{{ item.1.namespace }}"
exec {{ item.1.pod }} mkdir src
delegate_to: localhost
- name: Copy src repos to the pod
command: >
oc --context "{{ item.1.context }}"
--namespace "{{ item.1.namespace }}"
rsync -q --progress=false
{{ zuul.executor.src_root }}/
{{ item.1.pod }}:src/
no_log: true
delegate_to: localhost