Skip to content

[JENKINS-69749] Add ability to abort all previous queued builds #719

Description

@jenkins-infra-bot

Hi,

#200 added the ability to abort previous running thanks to the 
`abortPrevious` option. However, sometimes you only want to abort queued builds which isn't a functionality exposed by the plugin.

It would be easy to add an `abortPreviousQueued` option with the same implementation as `abortPrevious` replacing the call to `isBuilding` by `hasntStartedYet` there.


Originally reported by trayzen, imported from: Add ability to abort all previous queued builds
  • status: Open
  • priority: Major
  • component(s): workflow-job-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 20251212-090250
Raw content of original issue

Hi,

#200 added the ability to abort previous running thanks to the  `abortPrevious` option. However, sometimes you only want to abort queued builds which isn't a functionality exposed by the plugin.

It would be easy to add an `abortPreviousQueued` option with the same implementation as `abortPrevious` replacing the call to `isBuilding` by `hasntStartedYet` there.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions