From 7abddc1cc98b0f22a5f26dd979d0bc426cd54a50 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire?= <gregoire.kubler@proton.me>
Date: Tue, 27 Aug 2024 11:45:11 +0200
Subject: [PATCH] chore : more debug for windows list dependencies branch
 retrieval

---
 .gitlab/ci/download/select_jobs.gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab/ci/download/select_jobs.gitlab-ci.yml b/.gitlab/ci/download/select_jobs.gitlab-ci.yml
index bc4fef8..a86679a 100644
--- a/.gitlab/ci/download/select_jobs.gitlab-ci.yml
+++ b/.gitlab/ci/download/select_jobs.gitlab-ci.yml
@@ -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
-- 
GitLab