Do not run BC upgrade tests when no manifest found (#130167)

Fix the problem when curl/jq command returns "null" for no snapshots
found.
This commit is contained in:
Mariusz Józala 2025-06-27 10:36:39 +02:00 committed by GitHub
parent 6cb7b2d2f2
commit ea9ccc3660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ select(.active_release == true) |
(.build_candidates | to_entries | sort_by(.value.completed_at))) |
last | .value.manifest_url")"
if [[ -z "$MANIFEST_URL" ]]; then
if [[ -z "$MANIFEST_URL" ]] || [[ "$MANIFEST_URL" == "null" ]]; then
echo "No snapshots or build candidates for branch [$BUILDKITE_BRANCH]."
echo "Skipping BC upgrade tests."
exit 0