diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-11-09 16:12:01 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-11-09 16:12:01 +0100 |
commit | cef31939c934c5fcbadcc23e1db1cf42e6261a1b (patch) | |
tree | 6323fa085e99d1d10dcf78f3b3d76e0088ec51c2 /bin/reproducible_html_rsync_remote_results.sh | |
parent | 5cc35ecaa2fa33ddb2b28a934df771c3ed45b537 (diff) | |
download | jenkins.debian.net-cef31939c934c5fcbadcc23e1db1cf42e6261a1b.tar.xz |
refactor: fix source host, cleanup target directories, improve log output.
Diffstat (limited to 'bin/reproducible_html_rsync_remote_results.sh')
-rwxr-xr-x | bin/reproducible_html_rsync_remote_results.sh | 17 |
1 files changed, 14 insertions, 3 deletions
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." + |