summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-01-20 13:18:02 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-01-20 13:29:24 +0000
commit17a3185d1f674ad12e04b2eb1c3024f55768cd7c (patch)
tree6796f7fb31e6199dbc54d8e8104608b3a909c7f2
parentf7e8218a73db5f4177ef8d3389bda6476be5bab9 (diff)
downloadjenkins-scripts-17a3185d1f674ad12e04b2eb1c3024f55768cd7c.tar.gz
start-container-docker.sh: Add "lts" and "lts_1" values to --distro parameter
... which will be used in various CI loops to identify latest and latest-1 Ubuntu LTS releases. Presumably we will build and test master branches using latest LTS releases, and build and test stable release branches using LTS-1 releases. Change-Id: I0bd8dd5c8fcf5cac650fc76f8e995d7799c722fb
-rwxr-xr-xstart-container-docker.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh
index 179a5ac4..61cc9933 100755
--- a/start-container-docker.sh
+++ b/start-container-docker.sh
@@ -209,9 +209,11 @@ if [ x"$session_name" = x ]; then
session_name=$(print_docker_name "$session_name")
fi
-if [ x"$distro" = x"default" ]; then
- distro="bionic"
-fi
+# Resolve LTS and LTS-1 values to Ubuntu distros.
+case "$distro" in
+ lts_1|default) distro=bionic ;;
+ lts) distro=focal ;;
+esac
image=linaro/ci-${container_arch}-tcwg-build-ubuntu:${distro}