summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-09 16:34:13 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-09 16:34:13 +0100
commit16c653e55f32183bfeb6fbff579427f7cb5760d8 (patch)
tree951ed1da125ccd387a3ed2f2509c213bd43c97ae
parent1bafd72fbb8c030159df435f9a4f9324bc6547ac (diff)
downloadjenkins.debian.net-16c653e55f32183bfeb6fbff579427f7cb5760d8.tar.xz
reproducible: properly move results to target directory
-rwxr-xr-xbin/reproducible_html_rsync_remote_results.sh4
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
}