summaryrefslogtreecommitdiff
path: root/tcwg-update-host-containers.sh
blob: 30ed40db048c6ed37be24d4f7c1b92b6a7ec7b0a (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
#!/bin/bash

set -ef -o pipefail

scripts=$(dirname $0)
. $scripts/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"

if [ x"$group" = x"default" ]; then
    group="all"
    if [ x"$container" = x"jenkins" ]; then
	group="tcwg-infra"
    fi
fi

$scripts/tcwg-start-container.sh \
    --container "$container" \
    --image "$image" \
    --keep_existing false \
    --verbose "$verbose" \
    -- \
    --task $container --verbose $verbose -- $image $group