jenkins/common: set rsync to be quiet on jenkins output
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
988558b95d
commit
35cd165fd8
|
|
@ -172,9 +172,9 @@ 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 "rsync -q -auvz --ignore-existing -e \"ssh\" ${from}/* ${to}"
|
sh "set +x; rsync -q -auvz --ignore-existing -e \"ssh\" ${from}/* ${to}"
|
||||||
else
|
else
|
||||||
sh "rsync -q -auvz --ignore-existing -e \"ssh\" \$(find ${from} -maxdepth 1) ${to}"
|
sh "set +x; rsync -q -auvz --ignore-existing -e \"ssh\" \$(find ${from} -maxdepth 1) ${to}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue