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/osmo-ci/+/23122 ) Change subject: jobs/ttcn3: tweak shell cmd ...................................................................... jobs/ttcn3: tweak shell cmd Move 'cd' and './jenkins.sh' commands towards the end, so they are not repeated in the case block of each pattern. This is in preparation for the ggsn kernel mod test, which will need new patterns. Related: OS#3208 Change-Id: I0fac24b961b1abb09317144ec2f65d4e21eb70c2 --- M jobs/ttcn3-testsuites.yml 1 file changed, 14 insertions(+), 8 deletions(-) Approvals: pespin: Looks good to me, approved osmith: Verified diff --git a/jobs/ttcn3-testsuites.yml b/jobs/ttcn3-testsuites.yml index d787957..59f0397 100644 --- a/jobs/ttcn3-testsuites.yml +++ b/jobs/ttcn3-testsuites.yml @@ -222,24 +222,30 @@ builders: - shell: |- export REGISTRY_HOST="registry.osmocom.org" + + # Translate job name to docker-playground dir and relevant + # environment variables case "{job-name}" in TTCN3-centos-*-latest) - cd "$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/ | sed s/\-latest$//)" - IMAGE_SUFFIX="latest-centos8" ./jenkins.sh + DIR="$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/ | sed s/\-latest$//)" + export IMAGE_SUFFIX="latest-centos8" ;; TTCN3-centos-*) - cd "$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/)" - IMAGE_SUFFIX="master-centos8" ./jenkins.sh + DIR="$(echo "{job-name}" | sed s/^TTCN3-centos\-/ttcn3-/)" + export IMAGE_SUFFIX="master-centos8" ;; *-latest) - cd "$(echo "{job-name}" | sed s/\-latest$//)" - IMAGE_SUFFIX="latest" ./jenkins.sh + DIR="$(echo "{job-name}" | sed s/\-latest$//)" + export IMAGE_SUFFIX="latest" ;; *) - cd "{job-name}" - IMAGE_SUFFIX="master" ./jenkins.sh + DIR="{job-name}" + export IMAGE_SUFFIX="master" ;; esac + + cd "$DIR" + ./jenkins.sh scm: - git: branches: -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/23122 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I0fac24b961b1abb09317144ec2f65d4e21eb70c2 Gerrit-Change-Number: 23122 Gerrit-PatchSet: 2 Gerrit-Owner: osmith <osmith 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/20210226/31be575b/attachment.htm>