Fails pipeline if one stage fails

Problem with CI trigger-child-pipelines

Hello everyone, I have a request and I can’t find response with the documentation. I want to do something like that : “if a pipeline fails I want the whole pipeline to fail regardless of the stage”.

I have this conf :

project_a:
  trigger:
    include: project_a/.gitlab-ci.yml
    strategy: depend
  only:
    changes:
      - project_a/**/*
    refs:
      - main

project_b:
  trigger:
    include: project_b/.gitlab-ci.yml
    strategy: depend
  only:
    changes:
      - project_b/**/*
    refs:
      - main

project_c:
  trigger:
    include: project_c/.gitlab-ci.yml
    strategy: depend
  only:
    changes:
      - project_c/**/*
    refs:
      - main

Is it possible ?

Thanks in advance for you anwser.

Best regards,

Théo.

The shown config uses multi project pipelines where a downstream pipeline will fail the parent using the strategy:depend attribute. I’m not sure how this relates to stages. Can you show the downstream pipeline configuration, and a screenshot from the pipeline view? And maybe a different explanation for the problem you are trying ro solve.


Sorry for my late reply :slight_smile:

As you can see I have this example when a pipeline failed it’s not triggering the end of the pipeline.
The parent pipeline continue to run because there is another child pipelines that continue to run.