blob: a6421d8fca2c8ffe7f444c087e0c56b9a0aa0643 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/bin/bash
set -euf -o pipefail
scripts=$(dirname $0)
# shellcheck source=jenkins-helpers.sh
. $scripts/jenkins-helpers.sh
convert_args_to_variables "$@"
obligatory_variables board
declare -g board
distro="${distro-default}"
force="${force-false}"
test_docker="${test_docker-false}"
node="${node-}"
verbose="${verbose-true}"
if $verbose; then set -x; fi
ssh_root="ssh -p22 -lroot"
rsync -az --del -e "$ssh_root" \
$scripts/ $board:jenkins-scripts/
$ssh_root -Snone $board \
./jenkins-scripts/tcwg-update-host-containers.sh \
--distro "$distro" \
--group "tcwg-bmk" \
--force "$force" \
--test_docker "$test_docker" \
--additional_options "--privileged" \
--verbose "$verbose"
wait_for_ssh_server "$board" 100
if [ x"$node" != x"" ]; then
rsync -az --del \
$scripts/ $board:jenkins-scripts/
ssh -Snone $board \
./jenkins-scripts/tcwg-update-host-containers.sh \
--distro "$distro" \
--node "$node" \
--force "$force" \
--verbose "$verbose"
fi
|