blob: 6f472efedbb97c9f7dd6bc8ba9554471a85eb456 (
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
|
#!/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)
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
|