diff --git a/manifest-pipeline-yocto.yml b/manifest-pipeline-yocto.yml
index 5a19619da51dfe7c1b3d71763184af6d18ad18b2..c0d96905f407ba209b9a50a864964a525218b814 100644
--- a/manifest-pipeline-yocto.yml
+++ b/manifest-pipeline-yocto.yml
@@ -191,6 +191,7 @@ retrigger:
          if [ ${CI_PIPELINE_SOURCE} == "pipeline" ]; then
             echo "This is the manifest branch used for the build ${CI_COMMIT_REF_NAME}"
             BUILD_BRANCH="${CI_COMMIT_REF_NAME}"
+         fi
       - |
         su secous -c "
         repo init -u ${CI_REPOSITORY_URL} -b ${BUILD_BRANCH};