mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-17 16:20:28 +01:00
release.sh: check the right pipelines
Now we are using scheduled pipelines for various purposes like regenerating the container images and triage the issues and MRs. That means that the last pipeline ran for main might not be the pipeline with the jobs building and testing the code. Use `source=push` to retrieve only pipelines that are not scheduled. (cherry picked from commitc5e51bd5d8) (cherry picked from commit2355aca958) (cherry picked from commit5ce2444743)
This commit is contained in:
parent
b62dc0e18e
commit
b5d30f2974
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ check_gitlab_pipeline() {
|
|||
local SHA="$2"
|
||||
local PIPELINE_ID
|
||||
|
||||
PIPELINE_ID="$(curl --no-progress-meter "https://gitlab.freedesktop.org/api/v4/projects/411/pipelines?ref=$BRANCH&sha=$SHA&order_by=id" 2>/dev/null | jq '.[0].id')"
|
||||
PIPELINE_ID="$(curl --no-progress-meter "https://gitlab.freedesktop.org/api/v4/projects/411/pipelines?ref=$BRANCH&sha=$SHA&source=push&order_by=id" 2>/dev/null | jq '.[0].id')"
|
||||
if ! [[ $PIPELINE_ID =~ [0-9]+ ]] ; then
|
||||
echo "Cannot find pipeline for branch $BRANCH. Check \"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/pipelines?page=1&scope=branches&ref=$BRANCH\""
|
||||
return 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue