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:
parent
681db9cf29
commit
9a8783fae3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user