Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible in Gitlab UI to run a skipped item of the pipeline?

I have a pipeline on Gitlab that have multiple steps. One step in the middle is optional but configured as mandatory and today it started to fail.

In Gitlab UI when it fails all next pipeline items are marked as skipped and greyed out.

Is it possible to run manually in UI a next step after the failed one?

like image 216
Vitalii Avatar asked Dec 10 '25 00:12

Vitalii


1 Answers

Why it's not directly possible

CI pipelines are designed with a strong emphasis on dependency management. When a job in a pipeline fails, subsequent jobs are marked as skipped because they may rely on the output or success of the failed job. (Forcing execution could lead to unexpected errors.)

Workaround using allow_failure

You can mark a job as "allowed to fail" in your config. This way, subsequent jobs are not influenced by the status of this job.

allow_failure: true 

Important: Subsequent jobs should obviously not strictly depend on the job's successful completion and/or have built-in error handling.

https://docs.gitlab.com/ee/ci/yaml/#allow_failure

like image 54
Lexip Avatar answered Dec 11 '25 12:12

Lexip