summaryrefslogtreecommitdiffstats
path: root/bin/jenkins_master_wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/jenkins_master_wrapper.sh')
-rwxr-xr-xbin/jenkins_master_wrapper.sh62
1 files changed, 10 insertions, 52 deletions
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh
index 64195cc3..cd7d08e4 100755
--- a/bin/jenkins_master_wrapper.sh
+++ b/bin/jenkins_master_wrapper.sh
@@ -9,60 +9,18 @@ if [ "$HOSTNAME" = "jenkins-test-vm" ] ; then
exit 0
fi
-# real start
+# define Debian build nodes in use
+. /srv/jenkins/bin/jenkins_node_definitions.sh
+PORT=0
+get_node_ssh_port $NODE_NAME
+
+# by default we just use the job name as param
PARAMS="$JOB_NAME"
-# these nodes also need to be listed in bin/reproducible_common.sh where they define $BUILD_NODES
-case "$NODE_NAME" in
- bpi0-armhf-rb.debian.net)
- PORT=2222
- ;;
- hb0-armhf-rb.debian.net)
- PORT=2224
- ;;
- wbq0-armhf-rb.debian.net)
- PORT=2225
- ;;
- cbxi4pro0-armhf-rb.debian.net)
- PORT=2226
- ;;
- odxu4-armhf-rb.debian.net)
- PORT=2229
- ;;
- wbd0-armhf-rb.debian.net)
- PORT=2223
- ;;
- rpi2b-armhf-rb.debian.net)
- PORT=2230
- ;;
- rpi2c-armhf-rb.debian.net)
- PORT=2235
- ;;
- odxu4b-armhf-rb.debian.net)
- PORT=2232
- ;;
- odxu4c-armhf-rb.debian.net)
- PORT=2233
- ;;
- ff2a-armhf-rb.debian.net)
- PORT=2234
- ;;
- ff2b-armhf-rb.debian.net)
- PORT=2237
- ;;
- opi2a-armhf-rb.debian.net)
- PORT=2236
- ;;
- profitbricks-build?-amd64.debian.net)
- PORT=22
- if [[ "$JOB_NAME" =~ rebootstrap_.* ]] ; then
- PARAMS="$PARAMS $@"
- fi
- ;;
- *)
- echo >&2 "Unknown node $NODE_NAME."
- exit 1
-esac
+# though this could be used for other jobs as well...
+if [[ "$JOB_NAME" =~ rebootstrap_.* ]] ; then
+ PARAMS="$PARAMS $@"
+fi
# pseudo job used to cleanup nodes
if [ "$JOB_NAME" = "cleanup_nodes" ] ; then