diff --git a/Jenkinsfile_Common b/Jenkinsfile_Common index 7aa9b3e..9243623 100644 --- a/Jenkinsfile_Common +++ b/Jenkinsfile_Common @@ -170,7 +170,11 @@ def syncSources(src, dst) { } sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) { - sh "rsync -q -auvz --ignore-existing -e \"ssh\" ${from}/* ${to}" + # When the SRC is local, we want to avoid "*" expansion + if (hasSrcUrl) + sh "rsync -q -auvz --ignore-existing -e \"ssh\" ${from}/* ${to}" + else + sh "rsync -q -auvz --ignore-existing -e \"ssh\" $(find ${from} -maxdepth 1) ${to}" } }