Skip to content

Commit

Permalink
gitlab-logs: skip if download not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
andys8 committed Jan 31, 2025
1 parent 64f3651 commit 3c1fee1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/gitlab-logs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ job_names=$(echo "$pipeline_json" | jq -r "$jq_expr_name" | sort)
jq_expr_id='.jobs | map(select(.name | startswith("'$filter'"))) | map(.id) | .[]'
job_ids=$(echo "$pipeline_json" | jq -r "$jq_expr_id" | sort)

if [ -z "$job_ids" ]; then
echo "No jobs found for pipeline ID: $pipeline_id"
exit 1
fi

echo "Job Names:"
echo "$job_names"

Expand Down

0 comments on commit 3c1fee1

Please sign in to comment.