From e06b752af885e74987a4bf4351bb8d9868f20ce9 Mon Sep 17 00:00:00 2001 From: Tom Barron Date: Thu, 24 Jan 2019 16:47:06 -0500 Subject: [PATCH] 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 --- playbooks/manila-publish-artifacts/post.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/playbooks/manila-publish-artifacts/post.yaml b/playbooks/manila-publish-artifacts/post.yaml index 79c294f..08a5ede 100644 --- a/playbooks/manila-publish-artifacts/post.yaml +++ b/playbooks/manila-publish-artifacts/post.yaml @@ -1,7 +1,13 @@ - hosts: all name: Copy artifacts tasks: - - synchronize: + - 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/"