manila-image-elements/playbooks/manila-publish-artifacts/post.yaml
Tom Barron e06b752af8 Ensure artifacts directory exists
When we merged https://review.openstack.org/#/c/631846/ the
new image failed to upload to tarballs.openstack.org and the
error message in the post job indicated that the artifacts
directory was missing.

Change-Id: If1068b410e646f780635d733b52172d93da78db5
2019-01-25 12:56:01 +00:00

20 lines
544 B
YAML

- hosts: all
name: Copy artifacts
tasks:
- name: Ensure artifacts directory exists
file:
path: "{{ zuul.executor.work_root }}/artifacts"
state: directory
delegate_to: localhost
- name: Collect artifacts
synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts/images/"
mode: pull
src: "{{ zuul.project.src_dir }}/images/"
copy_links: true
verify_host: true
rsync_opts:
- --filter=P, *.qcow2
- --include=**
- --delete