jenkins-common.sh: add NO_LIST_OSMO_PACKAGES

Allow to optionally skip listing the installed packages. This is useful
to speed up tests when running locally.

Related: osmo-dev I3d9976d07f088e2d106d23259889a4bffe1abbcb
Change-Id: Iaafb81e9ee94850ae3b6318574ad5370d74a2838
This commit is contained in:
Oliver Smith 2021-07-09 10:14:16 +02:00 committed by osmith
parent 688cda1158
commit 9c6eda65cc
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ list_osmo_packages() {
local image="$2"
local docker_run_sh="docker run --rm --entrypoint=/bin/sh $REPO_USER/$image -c"
if [ -n "$NO_LIST_OSMO_PACKAGES" ]; then
return
fi
# Don't run on all images
case "$image" in
osmo-*) ;;