jenkins/common: used set +x to remove rsync log output

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-10-13 13:36:14 +02:00
parent 6848564543
commit b2ea75f1b9
1 changed files with 6 additions and 4 deletions

View File

@ -171,10 +171,12 @@ def syncSources(src, dst) {
sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) { sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) {
// When the SRC is local, we want to avoid "*" expansion // When the SRC is local, we want to avoid "*" expansion
if (hasSrcUrl) if (hasSrcUrl) {
sh "set +x; rsync -q -auvz --ignore-existing -e \"ssh\" ${from}/* ${to}" 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}" else {
sh "set +x && rsync -q -auvz --ignore-existing -e \"ssh\" \$(find ${from} -maxdepth 1) ${to}"
}
} }
} }