Skip to content
Snippets Groups Projects
Commit f05cec7a authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Why is the variable not set

parent 241713e8
No related branches found
No related tags found
1 merge request!5Adding nvhpc to kuma
Pipeline #205608 failed
......@@ -18,20 +18,20 @@ do
done
image_name=${stack}-${environment}-${squash_id}-${CI_PIPELINE_ID}
image_name=${stack}-${environment}-${SQUASHFS_ID}-${CI_PIPELINE_ID}
set +o errexit
# Check if MR as squashfs
sqfs_image=$(ls -t1 ${CI_DATA_LT}/squashfs-cache/${image_name}.sqfs 2> /dev/null | head -1)
if [ $? -ne 0 ]
then
echo "No MR ($squash_id-${CI_PIPELINE_ID}) squashfs found"
echo "No MR ($SQUASHFS_ID-${CI_PIPELINE_ID}) squashfs found"
# look for base in the branch
sqfs_base_image=$(ls -t1 ${CI_DATA_LT}/squashfs-cache/${stack}-${environment}-${squash_id}.sqfs 2> /dev/null | head -1)
sqfs_base_image=$(ls -t1 ${CI_DATA_LT}/squashfs-cache/${stack}-${environment}-${SQUASHFS_ID}.sqfs 2> /dev/null | head -1)
if [ $? -ne 0 ]
then
echo "No MR ($squash_id) squashfs found"
echo "No MR ($SQUASHFS_ID) squashfs found"
# look for base in default branch
sqfs_base_image=$(ls -t1 ${CI_DATA_LT}/squashfs-cache/${stack}-${environment}-${squash_base}*.sqfs 2> /dev/null | head -1)
......
......@@ -77,7 +77,5 @@ else
squash_base=main
fi
# backward compat
export squash_id=${SQUASHFS_ID}
set -o nounset
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment