blob: 06bc285eac0fecfbbaa2dc489bdda5af88251fb4 (
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
|
#!/bin/bash
set -ef -o pipefail
. $(dirname $0)/jenkins-helpers.sh
convert_args_to_variables "$@"
container="${container:-jenkins}"
distro="${distro:-xenial}"
group="${group:-default}"
verbose="${verbose:-true}"
set -u
if $verbose; then set -x; fi
image="linaro/ci-$(print_arch_for_host localhost)-tcwg-host-ubuntu:$distro"
docker pull "$image"
docker run --rm $image start.sh > start.sh
if docker inspect $container >/dev/null 2>&1; then
docker rm -vf $container
fi
if [ x"$group" = x"default" ]; then
group="all"
if [ x"$container" = x"jenkins" ]; then
group="tcwg-infra"
fi
fi
bash start.sh --task $container --verbose $verbose -- $image $group
|