Create dir needed to publish gerrit plugins

rsync will only create a single directory to copy contents in so we need
to create every dir level above that. In this case are copying to
$workdir/artifacts/plugins/$plugin and were only creating the artifacts
dir and rsync will only attempt to mkdir $plugin so this fails on
missing the plugins dir.

Fix this by also creating the plugins dir.

Change-Id: I93ecb3d39cc751bb7d4a17173fd02e41ea77b620
This commit is contained in:
Clark Boylan 2017-10-26 09:25:57 -07:00
parent 681db9cf29
commit 9a8783fae3
2 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,9 @@
- name: Ensure artifacts directory exists
file:
path: '{{ zuul.executor.work_root }}/artifacts'
path: '{{ zuul.executor.work_root }}/artifacts/plugins'
state: directory
recurse: yes
delegate_to: localhost
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node

View File

@ -3,8 +3,9 @@
- name: Ensure artifacts directory exists
file:
path: '{{ zuul.executor.work_root }}/artifacts'
path: '{{ zuul.executor.work_root }}/artifacts/plugins'
state: directory
recurse: yes
delegate_to: localhost
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node