[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] only include rsync output if $DEBUG is enabled
Holger Levsen (@holger)
gitlab at salsa.debian.org
Fri Aug 27 15:27:58 BST 2021
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
023110e7 by Holger Levsen at 2021-08-27T16:27:40+02:00
only include rsync output if $DEBUG is enabled
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_html_rsync_remote_results.sh
Changes:
=====================================
bin/reproducible_html_rsync_remote_results.sh
=====================================
@@ -17,7 +17,12 @@ rsync_remote_results() {
echo "$(date -u) - Starting to rsync results for '$PROJECT'."
local RESULTS=$(mktemp --tmpdir=$BASE/.. -d reproducible-rsync-${BUILD_ID}-XXXXXXXXX)
# copy the new results from build node to webserver node
- if rsync -r -v -e "ssh -o 'Batchmode = yes'" $NODE:$BASE/$PROJECT/ $RESULTS ; then
+ if $DEBUG ; then
+ RSYNCCMD="rsync -r -v -e \"ssh -o 'Batchmode = yes'\" $NODE:$BASE/$PROJECT/ $RESULTS 2>/dev/null"
+ else
+ RSYNCCMD="rsync -r -v -e \"ssh -o 'Batchmode = yes'\" $NODE:$BASE/$PROJECT/ $RESULTS"
+ fi
+ if eval $RSYNCCMD ; then
chmod 775 $RESULTS
# move old results out of the way
if [ -d $BASE/$PROJECT ] ; then
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/023110e7a6ebe9176309da7a00b9b39804af0eba
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/023110e7a6ebe9176309da7a00b9b39804af0eba
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20210827/ad5fefd5/attachment.htm>
More information about the Qa-jenkins-scm
mailing list