[Qa-jenkins-scm] [jenkins.debian.net] 01/01: refactor: fix source host, cleanup target directories, improve log output.

Holger Levsen holger at moszumanska.debian.org
Mon Nov 9 15:12:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit cef31939c934c5fcbadcc23e1db1cf42e6261a1b
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Nov 9 16:12:01 2015 +0100

    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(-)

diff --git a/bin/reproducible_html_rsync_remote_results.sh b/bin/reproducible_html_rsync_remote_results.sh
index 1c6e911..f93f43c 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."
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list