summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_master_wrapper.sh
blob: ad1fa3fe6f04e690d7de3a78b9f2f435a5951433 (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)
    exec ssh $NODE_NAME "$JOB_NAME"
    ;;
  *)
    echo >&2 "Unknown node $NODE_NAME."
    exit 1
esac