jp.ikedam.jenkins.plugins.groovy_label_assignment
Class GroovyLabelAssignmentAction

java.lang.Object
  extended by jp.ikedam.jenkins.plugins.groovy_label_assignment.GroovyLabelAssignmentAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.labels.LabelAssignmentAction, hudson.model.ModelObject

public class GroovyLabelAssignmentAction
extends Object
implements hudson.model.labels.LabelAssignmentAction

Holds the label name assigned by GroovyLabelAssignmentProperty.


Constructor Summary
GroovyLabelAssignmentAction(hudson.model.Label label)
          Deprecated. use GroovyLabelAssignmentAction(String)
GroovyLabelAssignmentAction(String labelString)
          Constructor
 
Method Summary
 hudson.model.Label getAssignedLabel()
          Returns the label which specifies nodes where this job should run.
 hudson.model.Label getAssignedLabel(hudson.model.queue.SubTask task)
          Returns the label which specifies nodes where this job should run.
 String getDisplayName()
          Returns the display name.
 String getIconFileName()
           
 String getLabelString()
           
 String getUrlName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyLabelAssignmentAction

public GroovyLabelAssignmentAction(String labelString)
Constructor

Parameters:
labelString - assigned label expression.
Since:
1.1.1

GroovyLabelAssignmentAction

@Deprecated
public GroovyLabelAssignmentAction(hudson.model.Label label)
Deprecated. use GroovyLabelAssignmentAction(String)

Parameters:
label -
Method Detail

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action
Returns:
null not for being displayed in the side menu of builds.
See Also:
Action.getIconFileName()

getDisplayName

public String getDisplayName()
Returns the display name. This is never used, for not displayed in the side menu of builds.

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject
Returns:
display name
See Also:
Action.getDisplayName()

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action
Returns:
null not for being displayed in the side menu of builds.
See Also:
Action.getUrlName()

getAssignedLabel

public hudson.model.Label getAssignedLabel(hudson.model.queue.SubTask task)
Returns the label which specifies nodes where this job should run. Implemented as overridden method.

Specified by:
getAssignedLabel in interface hudson.model.labels.LabelAssignmentAction
Returns:
an assigned label.
See Also:
LabelAssignmentAction.getAssignedLabel(hudson.model.queue.SubTask)

getAssignedLabel

public hudson.model.Label getAssignedLabel()
Returns the label which specifies nodes where this job should run. Implemented as getter.

Returns:
an assigned label.

getLabelString

public String getLabelString()
Returns:
the expression string for the assigned label.
Since:
1.1.1


Copyright © 2004-2015. All Rights Reserved.