Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,758
    • Issues 44,758
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,331
    • Merge requests 1,331
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #30235
Closed
Open
Issue created Jul 19, 2019 by Jason Yavorska@jyavorskaContributor

`allow_failure` action for pipeline rules

Problem to solve

Building on flexible rules for CI pipelines, some teams will need a way to allow certain rules to fail without causing a pipeline failure. As of the MVC, allow_failure: is only settable at the job level, not per-rule.

Proposal

We will introduce a new rule action called allow_failure. This action defines the behavior of job after the rule is matched, allowing us to conditionally set allowed to fail in given conditions. This replaces job-level allow_failure:. The default value is false.

Example:

rules:
  - changes: *.doc
    allow_failure: true

Permissions and Security

Documentation

Testing

What does success look like, and how can we measure that?

Links / references

Assignee
Assign to
Time tracking