This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
osmith gerrit-no-reply at lists.osmocom.orgosmith has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/24118 ) Change subject: jenkins-common.sh: support 2021q1 feed ...................................................................... jenkins-common.sh: support 2021q1 feed Adjust docker_depends and docker_dir_from_image_name for 2021q1. Extend README.md with examples. Related: SYS#5370 Change-Id: Icf1e3f1928658ff3d82190c4176252cf3590a1f5 --- M README.md M jenkins-common.sh 2 files changed, 52 insertions(+), 3 deletions(-) Approvals: daniel: Looks good to me, but someone else must approve osmith: Looks good to me, approved; Verified diff --git a/README.md b/README.md index 490e2a8..9a1889e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ ## Running a testsuite All testsuite folders start with `ttcn3` or `nplab`. Run the following -to build/update all required containers and start a specific testsuite: +to build/update all required containers from the "master" branch and +start a specific testsuite: ``` $ cd ttcn3-mgw-test @@ -26,6 +27,33 @@ * `NO_DOCKER_IMAGE_BUILD`: when set to `1`, it won't try to update the containers (see "caching" below) +### More examples + +latest (debian): +``` +$ export IMAGE_SUFFIX="latest" +$ cd ttcn3-mgw-test +$ ./jenkins.sh +``` + +latest-centos8: +``` +$ export IMAGE_SUFFIX="latest-centos8" +$ cd ttcn3-mgw-test +$ ./jenkins.sh +``` + +2021q1-centos8: +``` +export OSMOCOM_REPO_TESTSUITE_MIRROR="http://download.opensuse.org" +export OSMOCOM_REPO_MIRROR="https://downloads.osmocom.org" +export OSMOCOM_REPO_PATH="osmo-maintained" +export OSMOCOM_REPO_VERSION="2021q1" +export IMAGE_SUFFIX="2021q1-centos8" +$ cd ttcn3-mgw-test +$ ./jenkins.sh +``` + ## Kernel test OsmoGGSN can be configured to either run completely in userspace, or to use the GTP-U kernel module. To test the kernel module, OsmoGGSN and diff --git a/jenkins-common.sh b/jenkins-common.sh index 67a467d..e6a432d 100644 --- a/jenkins-common.sh +++ b/jenkins-common.sh @@ -6,7 +6,15 @@ } docker_depends() { + local feed + case "$1" in + osmo-*-20*q*-centos8) + # e.g. osmo-mgw-2021q1-centos8 -> centos8-obs-2021q1 + feed="$(echo "$1" | grep -o -P -- "20\d\dq.*$")" # e.g. "2021q1-centos8" + feed="$(echo "$feed" | sed 's/\-centos8$//')" # e.g. "2021q1" + echo "centos8-obs-$feed" + ;; osmo-*-latest-centos8) echo "centos8-obs-latest" ;; osmo-*-centos8) echo "centos8-build" ;; osmo-*-latest) echo "debian-stretch-obs-latest" ;; @@ -34,8 +42,21 @@ docker_dir_from_image_name() { case "$1" in - osmo-*-centos8) echo "$1" | sed 's/\-centos8$//' ;; - *) echo "$1" ;; + osmo-*-20*q*-centos8) + # e.g. osmo-mgw-2021q1-centos8 -> osmo-mgw-latest + echo "$1" | sed 's/20[0-9][0-9]q.*\-centos8$/latest/' + ;; + osmo-*-centos8) + # e.g. osmo-mgw-latest-centos8 -> osmo-mgw-latest + echo "$1" | sed 's/\-centos8$//' + ;; + centos8-obs-20*q*) + # e.g. centos8-obs-2021q1 -> centos8-obs-latest + echo "$1" | sed 's/20[0-9][0-9]q.*$/latest/' + ;; + *) + echo "$1" + ;; esac } -- To view, visit https://gerrit.osmocom.org/c/docker-playground/+/24118 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: docker-playground Gerrit-Branch: master Gerrit-Change-Id: Icf1e3f1928658ff3d82190c4176252cf3590a1f5 Gerrit-Change-Number: 24118 Gerrit-PatchSet: 2 Gerrit-Owner: osmith <osmith at sysmocom.de> Gerrit-Reviewer: daniel <dwillmann at sysmocom.de> Gerrit-Reviewer: osmith <osmith at sysmocom.de> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210504/91a973cd/attachment.htm>