#!/bin/bash set -ef -o pipefail scripts=$(dirname $0) # shellcheck source=jenkins-helpers.sh . $scripts/jenkins-helpers.sh convert_args_to_variables "$@" distro="${distro-bionic}" node="${node-host}" group="${group-default}" force="${force-false}" 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"$node" != x"host" ]; then group="tcwg-infra" fi fi if $force; then keep_existing=false else keep_existing=keep_if_same_image fi $scripts/tcwg-start-container.sh \ --container "$node" \ --image "$image" \ --keep_existing "$keep_existing" \ --verbose "$verbose" \ -- \ --verbose $verbose -- $image $group $node