aboutsummaryrefslogtreecommitdiffstats
path: root/ttcn3-sip-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-sip-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-sip-test')
-rwxr-xr-xttcn3-sip-test/jenkins.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ttcn3-sip-test/jenkins.sh b/ttcn3-sip-test/jenkins.sh
index 37a8e95..2dfd281 100755
--- a/ttcn3-sip-test/jenkins.sh
+++ b/ttcn3-sip-test/jenkins.sh
@@ -1,6 +1,12 @@
#!/bin/sh
. ../jenkins-common.sh
+IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
+docker_images_require \
+ "debian-jessie-build" \
+ "osmo-sip-$IMAGE_SUFFIX" \
+ "debian-stretch-titan" \
+ "ttcn3-sip-test"
network_create 172.18.11.0/24
@@ -20,7 +26,7 @@ docker run --rm \
-v $VOL_BASE_DIR/sip:/data \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-sip-connector -d \
- $REPO_USER/osmo-sip-master \
+ $REPO_USER/osmo-sip-$IMAGE_SUFFIX \
/usr/local/bin/osmo-sip-connector -M /data/unix/mncc
echo Starting container with SIP testsuite