jenkins/common: reverted the rsync part but added the set +x
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
b2ea75f1b9
commit
969fa192e9
|
|
@ -170,14 +170,8 @@ def syncSources(src, dst) {
|
|||
}
|
||||
|
||||
sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) {
|
||||
// When the SRC is local, we want to avoid "*" expansion
|
||||
if (hasSrcUrl) {
|
||||
sh "set +x && rsync -q -auvz --ignore-existing -e \"ssh\" ${from}/* ${to}"
|
||||
}
|
||||
else {
|
||||
sh "set +x && rsync -q -auvz --ignore-existing -e \"ssh\" \$(find ${from} -maxdepth 1) ${to}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue