jjb: Support release specific distrobuilder files
authorKienan Stewart <kstewart@efficios.com>
Tue, 30 Jan 2024 16:46:42 +0000 (11:46 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 2 Feb 2024 14:07:03 +0000 (09:07 -0500)
Change-Id: I9f692b483356cc7f6d40f5e39372c7f633b623d3
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
pipelines/images/distrobuild.sh

index b5e624ff5b85da56ff6bf73b325b45916d5f236c..7c2e161d841b5d7eb02bcf46a4ed9f4619c3f13f 100644 (file)
@@ -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}"
This page took 0.028842 seconds and 4 git commands to generate.