summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-30 21:00:13 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-30 21:00:13 +0200
commitd74094f03104000cc8e7c52d519136e3d5f48b71 (patch)
treef3de087766011c77904d1dae67d695f941b71046 /bin
parent75bab5314f12a03dfe4663ce1bfd1ab50534a895 (diff)
downloadjenkins.debian.net-d74094f03104000cc8e7c52d519136e3d5f48b71.tar.xz
proof of concept: allow rebootstrap jobs on nodes too (fixup 75bab531)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_node_wrapper.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/reproducible_node_wrapper.sh b/bin/reproducible_node_wrapper.sh
index 057ba4d3..2866a7cc 100755
--- a/bin/reproducible_node_wrapper.sh
+++ b/bin/reproducible_node_wrapper.sh
@@ -59,10 +59,14 @@ info "remote_host called with $*"
allowed_cmds=()
-if [ "$1" = "/srv/jenkins/bin/chroot-run.sh" ] && [ "$2" = "sid" ] && [ "$3" = "minimal" ] && [ "$4" = "./bootstrap.sh" ] ; then
- shift
+if [[ "$*" =~ rebootstrap_.* ]] ; then
+ REBOOTSTRAPSH="/srv/jenkins/bin/chroot-run.sh sid minimal ./bootstrap.sh"
+ REBOOTSTRAPSH="$REBOOTSTRAPSH HOST_ARCH=$(echo $1 | cut -d "_" -f2)"
+ if [[ "$*" =~ .*_debbindiff.* ]] ; then
+ REBOOTSTRAPSH="$REBOOTSTRAPSH ENABLE_DEBBINDIFF=yes"
+ fi echo $j | cut -d "_" -f2
export LC_ALL=C
- exec /srv/jenkins/bin/chroot-run.sh $@ ; croak "Exec failed";
+ exec $REBOOTSTRAPSH ; croak "Exec failed";
elif [ "$1" = "/srv/jenkins/bin/reproducible_build.sh" ] && ( [ "$2" = "1" ] || [ "$2" = "2" ] ) ; then
exec /srv/jenkins/bin/reproducible_build.sh $2 $3 $4 ; croak "Exec failed";
elif [ "$*" = "reproducible_setup_pbuilder_unstable_armhf_bpi0" ] ; then