public abstract static class Queue.QueueDecisionHandler extends Object implements ExtensionPoint
This handler is consulted every time someone tries to submit a task to the queue. If any of the registered handlers returns false, the task will not be added to the queue, and the task will never get executed.
The other use case is to add additional Action
s to the task
(for example LabelAssignmentAction
) to tasks that are submitted to the queue.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
QueueDecisionHandler() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<Queue.QueueDecisionHandler> |
all()
All registered
Queue.QueueDecisionHandler s |
abstract boolean |
shouldSchedule(Queue.Task p,
List<Action> actions)
Returns whether the new item should be scheduled.
|
public abstract boolean shouldSchedule(Queue.Task p, List<Action> actions)
actions
- List of actions that are to be made available as Actionable.getActions()
upon the start of the build. This list is live, and can be mutated.public static ExtensionList<Queue.QueueDecisionHandler> all()
Queue.QueueDecisionHandler
sCopyright © 2004–2021. All rights reserved.