From b2ea75f1b992aef2ca8ee1223bf65406d3607e25 Mon Sep 17 00:00:00 2001 From: Marc Mattmueller Date: Wed, 13 Oct 2021 13:36:14 +0200 Subject: [PATCH] jenkins/common: used set +x to remove rsync log output Signed-off-by: Marc Mattmueller --- Jenkinsfile_Common | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile_Common b/Jenkinsfile_Common index 2b0fe5a..e192f1b 100644 --- a/Jenkinsfile_Common +++ b/Jenkinsfile_Common @@ -171,10 +171,12 @@ 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}" + 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}" + } } }