Class GroovyLabelAssignmentAction
java.lang.Object
jp.ikedam.jenkins.plugins.groovy_label_assignment.GroovyLabelAssignmentAction
- All Implemented Interfaces:
Action,LabelAssignmentAction,ModelObject
Holds the label name assigned by GroovyLabelAssignmentProperty.
-
Constructor Summary
ConstructorsConstructorDescriptionGroovyLabelAssignmentAction(Label label) Deprecated.GroovyLabelAssignmentAction(String labelString) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the label which specifies nodes where this job should run.getAssignedLabel(SubTask task) Returns the label which specifies nodes where this job should run.Returns the display name.
-
Constructor Details
-
GroovyLabelAssignmentAction
Constructor- Parameters:
labelString- assigned label expression.- Since:
- 1.1.1
-
GroovyLabelAssignmentAction
Deprecated.- Parameters:
label-
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Returns:
- null not for being displayed in the side menu of builds.
- See Also:
-
getDisplayName
Returns the display name. This is never used, for not displayed in the side menu of builds.- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject- Returns:
- display name
- See Also:
-
getUrlName
- Specified by:
getUrlNamein interfaceAction- Returns:
- null not for being displayed in the side menu of builds.
- See Also:
-
getAssignedLabel
Returns the label which specifies nodes where this job should run. Implemented as overridden method.- Specified by:
getAssignedLabelin interfaceLabelAssignmentAction- Returns:
- an assigned label.
- See Also:
-
getAssignedLabel
Returns the label which specifies nodes where this job should run. Implemented as getter.- Returns:
- an assigned label.
-
getLabelString
- Returns:
- the expression string for the assigned label.
- Since:
- 1.1.1
-
GroovyLabelAssignmentAction(String)