summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-01 16:15:06 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-01 16:15:06 +0200
commit72672a5a8806f060398e5b60aebecb8f249d7c98 (patch)
treea7c4e3232e3477a28fcb3492c6b3f401a7edc0ba /bin
parent031bcbe5e9ff856d79f4b1154280d4381401ee1f (diff)
downloadjenkins.debian.net-72672a5a8806f060398e5b60aebecb8f249d7c98.tar.xz
fixup 031bcbe: rebootstrap: move or1k jobs to profitbricks4 node
Diffstat (limited to 'bin')
-rwxr-xr-xbin/jenkins_master_wrapper.sh6
-rwxr-xr-xbin/jenkins_node_wrapper.sh9
2 files changed, 8 insertions, 7 deletions
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh
index e11aec05..f50d85d0 100755
--- a/bin/jenkins_master_wrapper.sh
+++ b/bin/jenkins_master_wrapper.sh
@@ -17,7 +17,11 @@ case "$NODE_NAME" in
exec ssh -p 2226 $NODE_NAME "$JOB_NAME"
;;
profitbricks-build?-amd64.debian.net)
- exec ssh $NODE_NAME "$JOB_NAME"
+ if [[ "$JOBNAME" =~ rebootstrap_.* ]] ; then
+ exec ssh $NODE_NAME "$JOB_NAME $@"
+ else
+ exec ssh $NODE_NAME "$JOB_NAME"
+ fi
;;
*)
echo >&2 "Unknown node $NODE_NAME."
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh
index 23717899..18444119 100755
--- a/bin/jenkins_node_wrapper.sh
+++ b/bin/jenkins_node_wrapper.sh
@@ -62,14 +62,11 @@ allowed_cmds=()
if [[ "$*" =~ /bin/nc\ localhost\ 4949 ]] ; then
exec /bin/nc localhost 4949 ; croak "Exec failed";
-elif [[ "$*" =~ rebootstrap_.* ]] ; then
+elif [[ "$0" =~ 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
+ shift
export LC_ALL=C
- exec $REBOOTSTRAPSH ; 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 $5 ; croak "Exec failed";
elif [[ "$*" =~ rsync\ --server\ --sender\ .*\ .\ /srv/reproducible-results/tmp.* ]] ; then