From: Kienan Stewart Date: Tue, 30 Jan 2024 16:46:42 +0000 (-0500) Subject: jjb: Support release specific distrobuilder files X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7a714a3e7eb2c37e5f86d2c56d6ec309c9286da6;p=lttng-ci.git jjb: Support release specific distrobuilder files Change-Id: I9f692b483356cc7f6d40f5e39372c7f633b623d3 Signed-off-by: Kienan Stewart --- diff --git a/pipelines/images/distrobuild.sh b/pipelines/images/distrobuild.sh index b5e624f..7c2e161 100644 --- a/pipelines/images/distrobuild.sh +++ b/pipelines/images/distrobuild.sh @@ -111,6 +111,12 @@ EXTENSIONS=( ) IMAGE_FILE='' for IMAGE_DIR in "${IMAGE_DIRS[@]}" ; do + for EXTENSION in "${EXTENSIONS[@]}" ; do + if [ -f "${IMAGE_DIR}/${OS}-${RELEASE}.${EXTENSION}" ] ; then + IMAGE_FILE="${IMAGE_DIR}/${OS}-${RELEASE}.${EXTENSION}" + break 2; + fi + done for EXTENSION in "${EXTENSIONS[@]}" ; do if [ -f "${IMAGE_DIR}/${OS}.${EXTENSION}" ] ; then IMAGE_FILE="${IMAGE_DIR}/${OS}.${EXTENSION}"