diff options
-rwxr-xr-x | bin/reproducible_html_rsync_remote_results.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 <holger@layer-acht.org> # 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 } |