diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml
index 24c4565f1ce7d9d5404623ad8d354ddd68b2099e..7448adc80870a3da618a8164764c8168fa74a8a1 100644
--- a/.gitlab/ci/build.gitlab-ci.yml
+++ b/.gitlab/ci/build.gitlab-ci.yml
@@ -32,8 +32,6 @@ build:ubuntu_cpp:
         echo "No branch \"$CI_COMMIT_REF_NAME\" found for repository \"$DEPENDENCY_NAME\""
       fi
     - echo "Pulling from branch:\"$BRANCH_TO_PULL\""
-    - set -x
-
     # Check group namespace is valid, if it is then we are in the official project(aidge group id=6437), otherwise we pull from the fork 
     # nominal case : we are in the official project
     - >
@@ -50,14 +48,15 @@ build:ubuntu_cpp:
     - JOB_ID=-1
     # handle case where there is no branch with the same name
     - >
-      for i in $(seq 0 $(jq length <<< "$PIPELINES"))
-      do
+      for i in $(seq 0 $(jq length <<< "$PIPELINES")); do
+        set -x
         PIPELINE_ID=$(jq --argjson idx $i '.[$idx].id' <<< $PIPELINES)
         JOBS=$(curl -s --header "PRIVATE_TOKEN: $CI_JOB_TOKEN" "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/pipelines/$PIPELINE_ID/jobs" | jq --arg job_name "$DEPENDENCY_JOB" 'map(select((.name == $job_name) and (.status == "success")))')
         if [[ $(jq '. | length' <<< $JOBS) > 0 ]]; then
           JOB_ID=$(jq '.[0].id' <<< $JOBS)
           break
         fi
+        set +x
       done
     - >
       if( $JOB_ID == -1 ) ; then
@@ -69,7 +68,6 @@ build:ubuntu_cpp:
     - echo "curling from \"https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/$JOB_ID/artifacts\""
     - curl --location --output build_artifacts.zip --header "PRIVATE_TOKEN:$CI_JOB_TOKEN" "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/$JOB_ID/artifacts" 
 
-    - set +x
     - unzip -q -o build_artifacts.zip -d .
     - rm -rf build_cpp
     # end !reference[]