From cef31939c934c5fcbadcc23e1db1cf42e6261a1b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 9 Nov 2015 16:12:01 +0100 Subject: refactor: fix source host, cleanup target directories, improve log output. --- bin/reproducible_html_rsync_remote_results.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_rsync_remote_results.sh b/bin/reproducible_html_rsync_remote_results.sh index 1c6e9111..f93f43c0 100755 --- a/bin/reproducible_html_rsync_remote_results.sh +++ b/bin/reproducible_html_rsync_remote_results.sh @@ -11,6 +11,17 @@ common_init "$@" . /srv/jenkins/bin/reproducible_common.sh # that's all -for PROJECT in coreboot openwrt netbsd ; do - rsync -r -v -e ssh profitbricks-build4-amd64.debian.net:$BASE/$PROJECT/ $BASE/$PROJECT/ -done +rsync_remote_results() { + for PROJECT in coreboot openwrt netbsd ; do + echo "$(date -u) - Starting to rsync results for '$PROJECT'." + local RESULTS=$(mktemp --tmpdir=$TEMPDIR reproducible-rsync-XXXXXXXXX) + rsync -r -v -e ssh profitbricks-build3-amd64.debian.net:$BASE/$PROJECT/ $RESULTS + mv $RESULTS $BASE/$PROJECT + done +} + +# main +echo "$(date -u) - Starting to rsync results." +rsync_remote_results +echo "$(date -u) - the end." + -- cgit v1.2.3-70-g09d2