aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-03-04 09:54:26 +0100
committerOliver Smith <osmith@sysmocom.de>2021-03-04 10:56:24 +0100
commit3b9325f0b6976caabbedecd6106758c5b707f94c (patch)
tree17effb91d6a10ddebe59d81a35d64a641eedb3c0
parent0cdf1db3667981c48ec8fe82e1e2f0b0ad147e82 (diff)
jobs/ttcn3-testsuites-kernel-git: add OSMOCOM_VERSION
Let the user choose whether to run against osmo-ggsn latest or master. I chose the name "OSMOCOM_VERSION" for the variable to make this easier to use for people not familiar with the Osmocom stack / the test infrastructure, as suggested in the related issue. Related: OS#3208 Change-Id: Ifaf8ed6502b469ade670c3f436670480d27becd6
-rw-r--r--jobs/ttcn3-testsuites-kernel-git.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/jobs/ttcn3-testsuites-kernel-git.yml b/jobs/ttcn3-testsuites-kernel-git.yml
index cfc36f2..fa04cb9 100644
--- a/jobs/ttcn3-testsuites-kernel-git.yml
+++ b/jobs/ttcn3-testsuites-kernel-git.yml
@@ -55,6 +55,16 @@
<code>KERNEL_URL</code> and <code>KERNEL_REMOTE_NAME</code>
before building the kernel.
default: 'master'
+ - choice:
+ name: OSMOCOM_VERSION
+ choices:
+ - latest
+ - master
+ description: |
+ Version of the Osmocom stack to test against the kernel. Either
+ <code>latest</code> for the latest release version, or
+ <code>master</code> for HEAD of git.osmocom.org.
+ default: 'latest'
builders:
- shell: |-
@@ -65,7 +75,7 @@
case "{job-name}" in
ttcn3-ggsn-test-kernel-git)
DIR="ttcn3-ggsn-test"
- export IMAGE_SUFFIX="master"
+ export IMAGE_SUFFIX="$OSMOCOM_VERSION"
export KERNEL_TEST=1
export KERNEL_BUILD=1
;;