From 16c653e55f32183bfeb6fbff579427f7cb5760d8 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 9 Nov 2015 16:34:13 +0100 Subject: reproducible: properly move results to target directory --- bin/reproducible_html_rsync_remote_results.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_html_rsync_remote_results.sh b/bin/reproducible_html_rsync_remote_results.sh index 1da10410..2b53c8d7 100755 --- a/bin/reproducible_html_rsync_remote_results.sh +++ b/bin/reproducible_html_rsync_remote_results.sh @@ -3,7 +3,7 @@ # Copyright 2015 Holger Levsen # released under the GPLv=2 -DEBUG=true +DEBUG=false . /srv/jenkins/bin/common-functions.sh common_init "$@" @@ -16,7 +16,9 @@ rsync_remote_results() { echo "$(date -u) - Starting to rsync results for '$PROJECT'." local RESULTS=$(mktemp --tmpdir=$TEMPDIR -d reproducible-rsync-XXXXXXXXX) rsync -r -v -e ssh profitbricks-build3-amd64.debian.net:$BASE/$PROJECT/ $RESULTS + mv $BASE/$PROJECT ${RESULTS}.tmp mv $RESULTS $BASE/$PROJECT + rm ${RESULTS}.tmp -r echo "$(date -u) - $REPRODUCIBLE_URL/$PROJECT has been updated." done } -- cgit v1.2.3-70-g09d2