Skip to content

Empty rules fallbacks to when never, but gitlab.com fails hard #1561

@firecow

Description

@firecow

Minimal .gitlab-ci.yml illustrating the issue

---
job:
  rules: []
  script:
    - echo "Heya"

Expected behavior
I would expect gitlab-ci-local to blow up with an red error message, just like gitlab.com does

Unable to create pipeline
job:rules config can't be blank

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions