jp.ikedam.jenkins.plugins.groovy_label_assignment
Class GroovyLabelAssignmentQueueDecisionHandler

java.lang.Object
  extended by hudson.model.Queue.QueueDecisionHandler
      extended by jp.ikedam.jenkins.plugins.groovy_label_assignment.GroovyLabelAssignmentQueueDecisionHandler
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class GroovyLabelAssignmentQueueDecisionHandler
extends hudson.model.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
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
GroovyLabelAssignmentQueueDecisionHandler()
           
 
Method Summary
 boolean shouldSchedule(hudson.model.Queue.Task p, List<hudson.model.Action> actions)
          Handles GroovyLabelAssignmentProperty.
 
Methods inherited from class hudson.model.Queue.QueueDecisionHandler
all
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyLabelAssignmentQueueDecisionHandler

public GroovyLabelAssignmentQueueDecisionHandler()
Method Detail

shouldSchedule

public boolean shouldSchedule(hudson.model.Queue.Task p,
                              List<hudson.model.Action> actions)
Handles GroovyLabelAssignmentProperty. Trigger CondtionalLabelProperty, which results adding LabelAssignmentAction to actions.

Specified by:
shouldSchedule in class hudson.model.Queue.QueueDecisionHandler
Returns:
true if GroovyLabelAssignmentPropety is not set or GroovyLabelAssignmentProperty succeeds.
See Also:
Queue.QueueDecisionHandler.shouldSchedule(hudson.model.Queue.Task, java.util.List)


Copyright © 2004-2015. All Rights Reserved.