diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-01-08 19:06:31 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-01-08 19:06:31 +0100 |
commit | 38781b49a564ef21687e0a9aeb98c073e564c7cf (patch) | |
tree | d244c99440b04f377e9873411d3dd1a73e9ca1e6 /bin/jenkins_master_wrapper.sh | |
parent | b5ff4902d79d8342e3ff0b3684267301eb87f280 (diff) | |
download | jenkins.debian.net-38781b49a564ef21687e0a9aeb98c073e564c7cf.tar.xz |
reproducible: refactoring to only define build nodes and their ssh ports in one central place, bin/jenkins_node_definitions.sh
Diffstat (limited to 'bin/jenkins_master_wrapper.sh')
-rwxr-xr-x | bin/jenkins_master_wrapper.sh | 62 |
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 |