Class GroovyLabelAssignmentQueueDecisionHandler
java.lang.Object
hudson.model.Queue.QueueDecisionHandler
jp.ikedam.jenkins.plugins.groovy_label_assignment.GroovyLabelAssignmentQueueDecisionHandler
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class GroovyLabelAssignmentQueueDecisionHandler
extends Queue.QueueDecisionHandler
Handler that handles GroovyLabelAssignmentProperty.
This is called before a new build is enqueued.
Decide label of nodes where a job with GroovyLabelAssignmentProperty will be executed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldSchedule(Queue.Task p, List<Action> actions) Handles GroovyLabelAssignmentProperty.Methods inherited from class hudson.model.Queue.QueueDecisionHandler
all
-
Constructor Details
-
GroovyLabelAssignmentQueueDecisionHandler
public GroovyLabelAssignmentQueueDecisionHandler()
-
-
Method Details
-
shouldSchedule
Handles GroovyLabelAssignmentProperty. Trigger CondtionalLabelProperty, which results adding LabelAssignmentAction to actions.- Specified by:
shouldSchedulein classQueue.QueueDecisionHandler- Returns:
- true if GroovyLabelAssignmentPropety is not set or GroovyLabelAssignmentProperty succeeds.
- See Also:
-