From 0f6c75bb6f5a3b71ea5e3c5da9d83fa47f0ad786 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 9 Nov 2015 15:59:59 +0100 Subject: reproducible coreboot/openwrt/netbsd: add job to rsync the results to main node --- bin/jenkins_node_wrapper.sh | 2 ++ bin/reproducible_html_rsync_remote_results.sh | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 bin/reproducible_html_rsync_remote_results.sh (limited to 'bin') diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh index 1c13ce36..1bde7fe2 100755 --- a/bin/jenkins_node_wrapper.sh +++ b/bin/jenkins_node_wrapper.sh @@ -73,6 +73,8 @@ elif [ "$1" = "/srv/jenkins/bin/reproducible_build.sh" ] && ( [ "$2" = "1" ] || exec /srv/jenkins/bin/reproducible_build.sh "$2" "$3" "$4" "$5" ; croak "Exec failed"; elif [[ "$*" =~ rsync\ --server\ --sender\ .*\ .\ /srv/reproducible-results/tmp.* ]] ; then exec rsync --server --sender "$4" . "$6" ; croak "Exec failed"; +elif [[ "$*" =~ rsync\ --server\ --sender\ .*\ .\ /var/lib/jenkins/userContent/reproducible/.* ]] ; then + exec rsync --server --sender "$4" . "$6" ; croak "Exec failed"; elif [[ "$*" =~ rm\ -r\ /srv/reproducible-results/tmp.* ]] ; then exec rm -r "$3" ; croak "Exec failed"; elif [[ "$*" =~ reproducible_setup_pbuilder_unstable_.*_.* ]] ; then diff --git a/bin/reproducible_html_rsync_remote_results.sh b/bin/reproducible_html_rsync_remote_results.sh new file mode 100755 index 00000000..8727b2c9 --- /dev/null +++ b/bin/reproducible_html_rsync_remote_results.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Copyright 2015 Holger Levsen +# released under the GPLv=2 + +DEBUG=false +. /srv/jenkins/bin/common-functions.sh +common_init "$@" + +# common code defining db access +. /srv/jenkins/bin/reproducible_common.sh + +# that's all +for PROJECT in coreboot openwrt netbsd ; do + rsync -r -v -e ssh profitbricks-build4.amd64:$BASE/$PROJECT/ $BASE/$PROJECT/ +done -- cgit v1.2.3-70-g09d2