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
This commit is contained in:
parent
69809ab0a0
commit
f61d3ad8b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue