Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop a status ruleset for an independent stage #910

Open
ecrupper opened this issue Feb 5, 2024 · 1 comment
Open

Develop a status ruleset for an independent stage #910

ecrupper opened this issue Feb 5, 2024 · 1 comment
Labels
area/server Indicates a change to the server enhancement Indicates an improvement to a feature

Comments

@ecrupper
Copy link
Contributor

ecrupper commented Feb 5, 2024

Description

Example pipeline:

version: "1"

stages:
  failing:
    steps:
      - name: fail
        image: alpine:latest
        commands:
          - exit 1

  indy:
    independent: true
    steps:
      - name: wait
        image: alpine:latest
        commands:
          - sleep 5

      - name: should not run
        image: alpine:latest
        ruleset:
          status: failure
        commands:
          - echo "why am I running"

The above will execute the should not run step because the overall build's status is a failure. This issue suggests we should either change the logic for the status ruleset for independent stages OR create a new status like stage-failure or something along those lines.

Value

It more accurately aligns with the "spirit" of independent stages.

Definition of Done

There is a way where the example pipeline above does not execute that should not run step.

Effort (Optional)

1-2 weeks maybe

@ecrupper ecrupper added the enhancement Indicates an improvement to a feature label Feb 5, 2024
@darjisanket
Copy link

We are also searching for the same feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/server Indicates a change to the server enhancement Indicates an improvement to a feature
Projects
None yet
Development

No branches or pull requests

3 participants