Skip to content

Commit

Permalink
Merge pull request #14 from projectsyn/fix/fail-render-pipeline-on-nu…
Browse files Browse the repository at this point in the history
…ll-catalog-url

Abort `render-pipeline` when we get a `null` catalog URL
  • Loading branch information
simu authored Jan 29, 2025
2 parents d79a32e + e4594c8 commit ac6086f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitlab/bin/step-render-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ set -e -u -x
cluster_catalog_urls=""
for c in ${CLUSTERS}; do
r=$(curl -sH"Authorization: Bearer ${COMMODORE_API_TOKEN}" "${COMMODORE_API_URL}/clusters/${c}" | jq -r .gitRepo.url)
if [ "$r" = "null" ]; then
echo "Got 'null' for catalog URL fo cluster ${c}, aborting..."
exit 1
fi
cluster_catalog_urls="${cluster_catalog_urls}${c}=${r} "
done

Expand Down

0 comments on commit ac6086f

Please sign in to comment.