diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-12-03 16:57:21 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2021-12-03 17:29:40 +0100 |
commit | f61d3ad8b5f4ac0512bfca9be81c110fcddd9b39 (patch) | |
tree | 0a52bb7005bfa6b3ae3476b7b135021d07fc4a04 | |
parent | 69809ab0a0fdb50ca4788445df15895c60a214d9 (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.
Related: OS#5336
Change-Id: I7127e3ebac3a6a985c3ba50ba8c7cb8c5de978d9
-rw-r--r-- | jenkins-common.sh | 10 |
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 |