Skip to content
Snippets Groups Projects
Commit 7abddc1c authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

chore : more debug for windows list dependencies branch retrieval

parent 5c32e4ed
No related branches found
No related tags found
No related merge requests found
......@@ -316,8 +316,10 @@
Write-Host "****************************************************************************************************************************"
Write-Host "Retrieving regular pipelines from $API_URL/projects/$DEP_ID/pipelines?ref=$BRANCH_TO_PULL"
$PIPELINES=$(Invoke-RestMethod -Uri "$API_URL/projects/$DEP_ID/pipelines?ref=$BRANCH_TO_PULL" -Method Get)
Write-Host "Found $($PIPELINES.Count) pipelines linked with $BRANCH_TO_PULL as ref."
Write-Host "Retrieving MR pipelines from $API_URL/projects/$DEP_ID/merge_requests?source_branch=$BRANCH_TO_PULL"
$MR_ID=(Invoke-RestMethod -Uri "$API_URL/projects/$DEP_ID/merge_requests?source_branch=$BRANCH_TO_PULL" -Method Get)
Write-Host "Found $($MR_ID.Count) MR with $BRANCH_TO_PULL as target branch."
Write-Host "Found $($MR_ID.Count) MR with $BRANCH_TO_PULL as source branch."
if ( $MR_ID.Count -ne 0 ){
$MR_PIPELINES=(Invoke-RestMethod -Uri "$API_URL/projects/$DEP_ID/merge_requests/$MR_ID/pipelines" -Method Get)
$PIPELINES+=$MR_PIPELINES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment