summaryrefslogtreecommitdiffstats
path: root/bin/jenkins_master_wrapper.sh
blob: 77c90026e62e9a68460a7f5528c694e6fc72d5b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

set -u
set -e

# 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)
    exec ssh -p 2222 $NODE_NAME "$JOB_NAME"
    ;;
  hb0-armhf-rb.debian.net)
    exec ssh -p 2224 $NODE_NAME "$JOB_NAME"
    ;;
  wbq0-armhf-rb.debian.net)
    exec ssh -p 2225 $NODE_NAME "$JOB_NAME"
    ;;
  cbxi4pro0-armhf-rb.debian.net)
    exec ssh -p 2226 $NODE_NAME "$JOB_NAME"
    ;;
  profitbricks-build?-amd64.debian.net)
    if [[ "$JOB_NAME" =~ rebootstrap_.* ]] ; then
	    exec ssh $NODE_NAME "$JOB_NAME $@"
    else
	    exec ssh $NODE_NAME "$JOB_NAME"
    fi
    ;;
  *)
    echo >&2 "Unknown node $NODE_NAME."
    exit 1
esac