Skip to content

Pipeline with all jobs allowed to fail results in skipped pipeline status

Summary

A pipeline which contains only jobs which are allowed to fail, gets the state skipped if all jobs fail.

Steps to reproduce

  • Create a repository and set up .gitlab-ci.yml with a single job which is allowed to fail
  • Make sure the job fails for whatever reason
  • Run a pipeline
  • The pipeline ends up in state "skipped", while the job is correctly marked as "failed (allowed to fail)"

What is the current bug behavior?

The pipeline is marked as skipped

What is the expected correct behavior?

The pipeline should be marked as passed with warnings

Relevant logs and/or screenshots

The job is failed, the pipeline is skipped in the pipeline view:

image

The jobs are correctly marked as failed in the jobs view: image