Dereference symlinks when staging artefacts
If an artefact is a symlink, dereference it before coying it as just copying the link may render it broken one the staged folder is synced to the executor. Change-Id: I5ad4dfccbc1389da3afc53f3c866d3475e006db6
This commit is contained in:
parent
819b5447aa
commit
68dec9ecc5
@ -44,7 +44,7 @@
|
||||
- name: Copy text files to staging folder
|
||||
# remote_src copy does not work recursively, synchronise is restricted by
|
||||
# zuul, using command
|
||||
command: cp -pR {{ item.source}} {{ stage_dir }}/{{ item.dest }}
|
||||
command: cp -pRL {{ item.source}} {{ stage_dir }}/{{ item.dest }}
|
||||
with_items: "{{ all_sources }}"
|
||||
|
||||
# NOTE(andreaf) The ansible module does not support recursive archive, so
|
||||
|
Loading…
Reference in New Issue
Block a user