From 968570028fccc493a7390fdf69b2c50475a43e89 Mon Sep 17 00:00:00 2001 From: Guillaume Giamarchi Date: Tue, 22 May 2018 15:15:52 -0700 Subject: [PATCH] Prevent copy to fail when broken symlink If a broken symlink is present into the git source tree, scp will merely fail. Using rsync allows to copy symlinks without dereference. --- roles/controller/files/usr/local/bin/kvmjob.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/controller/files/usr/local/bin/kvmjob.sh b/roles/controller/files/usr/local/bin/kvmjob.sh index 36379be..f00210e 100755 --- a/roles/controller/files/usr/local/bin/kvmjob.sh +++ b/roles/controller/files/usr/local/bin/kvmjob.sh @@ -257,7 +257,7 @@ fi cat ${sourcesDir}/.ci.yml | yq .script | jq -r .[] > ${sourcesDir}/.ci.sh ### Copy source git repository into sandbox -scp -r ${sourcesDir} ${vmUser}@${vmIP}: +rsync -ae ssh ${sourcesDir} ${vmUser}@${vmIP}: ### Install additionnal tools into sandbox