From e1475e03b156712a52a606e0dc220b477c80019a Mon Sep 17 00:00:00 2001 From: Vasyl Saienko Date: Thu, 26 Oct 2017 13:41:21 +0300 Subject: [PATCH] Ensure dst subfolder exists in post build jobs We ensure that parent directory exists while trying to sync into subdir, as result post job failed. This patch ensures we created subdirectory where we will sync files before sync. Change-Id: I85ad8d6d719d0115c869a11cac3233ef203de1be Closes-Bug: #1727652 --- .../legacy/ironic-python-agent-buildimage-coreos/post.yaml | 2 +- .../legacy/ironic-python-agent-buildimage-tinyipa/post.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml b/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml index 39672399e..a485083d6 100644 --- a/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml +++ b/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml @@ -3,7 +3,7 @@ - name: Ensure artifacts directory exists file: - path: '{{ zuul.executor.work_root }}/artifacts' + path: '{{ zuul.executor.work_root }}/artifacts/coreos/files' state: directory delegate_to: localhost diff --git a/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml index a6361bf6c..42a32834c 100644 --- a/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml +++ b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml @@ -3,7 +3,7 @@ - name: Ensure artifacts directory exists file: - path: '{{ zuul.executor.work_root }}/artifacts' + path: '{{ zuul.executor.work_root }}/artifacts/tinyipa/files' state: directory delegate_to: localhost