Forbid running jobs if previous stages failed/canceled

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

It is possible to manual jobs and/or retries in a stage even if a previous stage is failing / canceled. See for example Build major and Build tag below

Capture_d_écran_2019-01-10_10.22.13

While this is by design and might make sense, e.g. if you have a manual job you want to execute if a pipeline fails, it could also be helpful to enforce that that a job is just executed if all previous stages have been successful. One could think about adding a new feature to the yml:

allow_execution_if_previous_stage_failed: true | false

If that option would have been enabled, in the above screenshot neither things from Build nor Deploy would have been executable.

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading