aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-12-03 16:57:21 +0100
committerOliver Smith <osmith@sysmocom.de>2021-12-03 17:08:29 +0100
commit2b5afe65cc043a66d0ddf9d6c89e3da24f0d17f3 (patch)
tree0a52bb7005bfa6b3ae3476b7b135021d07fc4a04
parent69809ab0a0fdb50ca4788445df15895c60a214d9 (diff)
jenkins-common.sh: fix redundant titan image build
Do not build debian-stretch-titan, when registry.osmocom.org is enabled. The image that would be built at this point is not useful, since other images like ttcn3-msc-test will use the debian-stretch-titan image from the registry instead of the one that was just built locally. Change-Id: I7127e3ebac3a6a985c3ba50ba8c7cb8c5de978d9
-rw-r--r--jenkins-common.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/jenkins-common.sh b/jenkins-common.sh
index d4258d2..88d053c 100644
--- a/jenkins-common.sh
+++ b/jenkins-common.sh
@@ -120,6 +120,16 @@ docker_images_require() {
local dir
for i in $@; do
+ # Don't build images that are available on the private
+ # registry, if using it.
+ if [ "$REGISTRY_HOST" = "registry.osmocom.org" ]; then
+ case "$i" in
+ debian-stretch-titan)
+ continue
+ ;;
+ esac
+ fi
+
# Build dependencies first
depends="$(docker_depends "$i")"
if [ -n "$depends" ]; then