summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_master_wrapper.sh
blob: e11aec052b6774b9a2617d59de236019b84fd562 (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
#!/bin/bash

set -u
set -e

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)
    exec ssh $NODE_NAME "$JOB_NAME"
    ;;
  *)
    echo >&2 "Unknown node $NODE_NAME."
    exit 1
esac