summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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