diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-07-30 15:47:49 +0200 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-07-30 15:47:49 +0200 |
commit | 1a95dedef152635636c75b6ceb29bd6ae6bf6d41 (patch) | |
tree | 214fec7ece3ba7a8ba16100faa2194105487d367 | |
parent | 6dab159dc426abf3caf48eba6e40ec0aa0c326c6 (diff) |
tcwg-update-host-containers.sh: Add --group GROUP option
Change-Id: Ib4c62cf1d95202cfba8519b6a03de3a526369637
-rwxr-xr-x | tcwg-update-host-containers.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tcwg-update-host-containers.sh b/tcwg-update-host-containers.sh index fc614c08..06bc285e 100755 --- a/tcwg-update-host-containers.sh +++ b/tcwg-update-host-containers.sh @@ -7,6 +7,7 @@ convert_args_to_variables "$@" container="${container:-jenkins}" distro="${distro:-xenial}" +group="${group:-default}" verbose="${verbose:-true}" set -u @@ -21,9 +22,11 @@ if docker inspect $container >/dev/null 2>&1; then docker rm -vf $container fi -group="all" -if [ x"$container" = x"jenkins" ]; then - group="tcwg-infra" +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 |