mistral/playbooks/legacy/mistral-docker-buildimage/post.yaml
Brad P. Crochet 098845e691 Migrate Mistral jobs to Zuul v3
Change-Id: I2164953581efad6da2354f781b0567d6125bc5aa
Partial-Bug: #1720797
2017-10-03 09:46:16 -04:00

22 lines
612 B
YAML

- hosts: primary
tasks:
- name: Ensure artifacts directory exists
file:
path: '{{ zuul.executor.work_root }}/artifacts'
state: directory
delegate_to: localhost
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
synchronize:
src: '{{ ansible_user_dir }}/workspace/'
dest: '{{ zuul.executor.work_root }}/artifacts/images'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/mistral-docker.tar.gz
- --include=*/
- --exclude=*
- --prune-empty-dirs