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:
Andrea Frittoli (andreaf) 2017-12-18 16:06:41 +00:00
parent 819b5447aa
commit 68dec9ecc5
1 changed files with 1 additions and 1 deletions

View File

@ -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