jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-27092] create a step to abort the build with a NOT_BUILT status

Open
#385 19 comments 0 reactions 0 assignees View on GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
73
Forks
129
PR merge metrics
No merged PRs in 30d

Description

The error step results in a workflow with a "FAILURE" state.

It is desirable to be able to end a workflow early from within the workflow itself but not have the workflow in an error state (which would imply a user needs to take a look at why it failed and perform so work).

e.g.

say I do not want to deploy any code to production on a Friday afternoon

A step that stops the workflow on a Friday afternoon should not result in the build being failed but in one that it has been intentionally cut short.

---
Originally reported by teilo, imported from: create a step to abort the build with a NOT_BUILT status


  • status: Reopened
  • priority: Minor
  • component(s): workflow-basic-steps-plugin
  • label(s): community-bee
  • resolution: Unresolved
  • votes: 24
  • watchers: 33
  • imported: 20251215-220547

Raw content of original issue

The error step results in a workflow with a "FAILURE" state.

It is desirable to be able to end a workflow early from within the workflow itself but not have the workflow in an error state (which would imply a user needs to take a look at why it failed and perform so work).

e.g.
say I do not want to deploy any code to production on a Friday afternoon

A step that stops the workflow on a Friday afternoon should not result in the build being failed but in one that it has been intentionally cut short.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.