oneuptime/Ci/scripts/job-status.sh
Nawaz Dhandala a981683d81
fix
2022-04-10 22:50:28 +01:00

2 lines
230 B
Bash
Executable File

sudo apt-get install -y jq
curl -s -S --header "PRIVATE-TOKEN: $PERSONAL_ACCESS_TOKEN" "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs?per_page=50" | jq -c ".[] | select(.name==\"$1\") | .status"