Class ChoiceWatchQueueDecisionHandler
- java.lang.Object
-
- hudson.model.Queue.QueueDecisionHandler
-
- jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceWatchQueueDecisionHandler
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class ChoiceWatchQueueDecisionHandler extends Queue.QueueDecisionHandler
Listen for what value is specified with ExtensibleChoiceParameter. Registered only for watching enqueued jobs, not for decide whether a job should be enqueued.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ChoiceWatchQueueDecisionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onQueueing(Queue.Task p, List<Action> actions)
Notify ChoiceListProvider of the value selected.boolean
shouldSchedule(Queue.Task p, List<Action> actions)
Notify ChoiceListProvider of the value selected.-
Methods inherited from class hudson.model.Queue.QueueDecisionHandler
all
-
-
-
-
Method Detail
-
shouldSchedule
public boolean shouldSchedule(Queue.Task p, List<Action> actions)
Notify ChoiceListProvider of the value selected. Called when Jenkins decides a build is queued.- Specified by:
shouldSchedule
in classQueue.QueueDecisionHandler
- Returns:
- always true (can be queued)
- See Also:
Queue.QueueDecisionHandler.shouldSchedule(hudson.model.Queue.Task, java.util.List)
-
onQueueing
protected void onQueueing(Queue.Task p, List<Action> actions)
Notify ChoiceListProvider of the value selected.
-
-