aboutsummaryrefslogtreecommitdiffstats
path: root/ttcn3-mgw-test
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2018-10-16 11:15:42 +0200
committerOliver Smith <osmith@sysmocom.de>2018-10-26 10:19:05 +0200
commitccf62eb2312a582eca31602a293df5d5ea7d83d4 (patch)
tree0d01550f311e413abf6fb7012d814518892ab258 /ttcn3-mgw-test
parenta89aa7f8037592e88c0f4a05473f6182561ce9b5 (diff)
jenkins.sh: IMAGE_SUFFIX, docker_images_require()
Default value "master" of the IMAGE_SUFFIX environment variable can be changed to "latest" to test the latest stable builds instead of the nightly ones. Use docker_images_require() to make sure that the required images are existing and up-to-date before running the tests. Related: OS#3268 Change-Id: Idbb708ab16cb71bab5069127945b63388222369e
Diffstat (limited to 'ttcn3-mgw-test')
-rwxr-xr-xttcn3-mgw-test/jenkins.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ttcn3-mgw-test/jenkins.sh b/ttcn3-mgw-test/jenkins.sh
index ee624b9..4f836b7 100755
--- a/ttcn3-mgw-test/jenkins.sh
+++ b/ttcn3-mgw-test/jenkins.sh
@@ -1,6 +1,12 @@
#!/bin/sh
. ../jenkins-common.sh
+IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
+docker_images_require \
+ "debian-jessie-build" \
+ "osmo-mgw-$IMAGE_SUFFIX" \
+ "debian-stretch-titan" \
+ "ttcn3-mgw-test"
mkdir $VOL_BASE_DIR/mgw-tester
cp MGCP_Test.cfg $VOL_BASE_DIR/mgw-tester/
@@ -15,7 +21,7 @@ docker run --rm \
--network $NET_NAME --ip 172.18.4.180 \
-v $VOL_BASE_DIR/mgw:/data \
--name ${BUILD_TAG}-mgw -d \
- $REPO_USER/osmo-mgw-master
+ $REPO_USER/osmo-mgw-$IMAGE_SUFFIX
# start docker container with testsuite in foreground
docker run --rm \