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

chore : added more debug prints

parent 0d564b66
No related branches found
No related tags found
No related merge requests found
...@@ -409,11 +409,15 @@ ...@@ -409,11 +409,15 @@
$MR_PIPELINES=(Invoke-RestMethod -Uri "$DEP_API_URL/merge_requests/$($MR_ID[0].iid)/pipelines" -Method Get) $MR_PIPELINES=(Invoke-RestMethod -Uri "$DEP_API_URL/merge_requests/$($MR_ID[0].iid)/pipelines" -Method Get)
$PIPELINES+=$MR_PIPELINES $PIPELINES+=$MR_PIPELINES
} }
## Sort pipelines by "updated_at" from earliest to latest and only retrieve the ones whose url contain our project namespaec. Write-Host "Pipelines retrieved:"
$PIPELINES | Out-String
Write-Host "Sorting pipelines from newest to oldest & filtering out those not linked to CI_PROJECT_NAMESPACE ($CI_PROJECT_NAMESPACE)"
$PIPELINES = $PIPELINES | $PIPELINES = $PIPELINES |
Where-Object { $_.web_url -match $CI_PROJECT_NAMESPACE } | Where-Object { $_.web_url -match $CI_PROJECT_NAMESPACE } |
Sort-Object -Property updated_at -Descending Sort-Object -Property updated_at -Descending
Write-Host "Final Pipelines to parse : "
$PIPELINES | Out-String
Write-Host "*************************************************************************" Write-Host "*************************************************************************"
Write-Host "*************************************************************************" Write-Host "*************************************************************************"
Write-Host "**" Write-Host "**"
......
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