jjb: Support release specific distrobuilder files
[lttng-ci.git] / 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.023051 seconds and 4 git commands to generate.