Package hudson.model

Class Queue.QueueDecisionHandler

  • All Implemented Interfaces:
    ExtensionPoint
    Direct Known Subclasses:
    ItemDeletion
    Enclosing class:
    Queue

    public abstract static class Queue.QueueDecisionHandler
    extends Object
    implements ExtensionPoint
    Extension point for deciding if particular job should be scheduled or not.

    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 Actions to the task (for example LabelAssignmentAction) to tasks that are submitted to the queue.

    Since:
    1.316