summaryrefslogtreecommitdiff
path: root/tcwg-update-llvmbot-containers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-update-llvmbot-containers.sh')
-rwxr-xr-xtcwg-update-llvmbot-containers.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tcwg-update-llvmbot-containers.sh b/tcwg-update-llvmbot-containers.sh
index 037a5daa..3bc4fe23 100755
--- a/tcwg-update-llvmbot-containers.sh
+++ b/tcwg-update-llvmbot-containers.sh
@@ -10,11 +10,18 @@ convert_args_to_variables "$@"
obligatory_variables NODE_NAME password
distro="${distro-xenial}"
+force="${force-false}"
master="${master-silent}"
verbose="${verbose-true}"
if $verbose; then set -x; fi
+if $force; then
+ keep_existing=false
+else
+ keep_existing=keep_if_same_image
+fi
+
case "$NODE_NAME:$master" in
tcwg-llvmbot_d05-01:normal)
bot_prefix=linaro-armv8-01-
@@ -52,7 +59,7 @@ for bot in "${bots[@]+${bots[@]}}"; do
$scripts/tcwg-start-container.sh \
--container "$master-${bot_prefix}$bot" \
--image "$image" \
- --keep_existing "false" \
+ --keep_existing "$keep_existing" \
--verbose "$verbose" \
-- \
$image $master ${bot_prefix}$bot $password