Skip to content
Snippets Groups Projects
Commit 023110e7 authored by Holger Levsen's avatar Holger Levsen
Browse files

only include rsync output if $DEBUG is enabled

parent e59f4953
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment