Class LabelParameterValue
java.lang.Object
hudson.model.ParameterValue
org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NodeParameterValue
- Author:
- Dominik Bartholdi (imod)
- See Also:
-
Field Summary
FieldsFields inherited from class hudson.model.ParameterValue
name -
Constructor Summary
ConstructorsConstructorDescriptionLabelParameterValue(String name) LabelParameterValue(String name, String label) Deprecated.LabelParameterValue(String name, String label, boolean allNodesMatchingLabel, NodeEligibility nodeEligibility) LabelParameterValue(String name, String description, String label) LabelParameterValue(String name, List<String> labels, NodeEligibility nodeEligibility) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBadgeToBuild(AbstractBuild<?, ?> build) adds a badge to the build which will be visible in the build history as an iconvoidbuildEnvironment(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.createBuildWrapper(AbstractBuild<?, ?> build) createVariableResolver(AbstractBuild<?, ?> build) booleangetAssignedLabel(SubTask task) getLabel()Gets the labels to be used to trigger the next builds withinthashCode()voidtoString()Methods inherited from class hudson.model.ParameterValue
buildEnvVars, buildEnvVars, getDefinition, getDescription, getFormattedDescription, getName, getShortDescription, getValue, isSensitive, setDescription
-
Field Details
-
nextLabels
-
-
Constructor Details
-
LabelParameterValue
-
LabelParameterValue
Deprecated. -
LabelParameterValue
-
LabelParameterValue
@DataBoundConstructor public LabelParameterValue(String name, String label, boolean allNodesMatchingLabel, NodeEligibility nodeEligibility) - Parameters:
name- parameter valuelabel- parameter labelallNodesMatchingLabel- if true, then all nodes matching the label are to be usednodeEligibility- node eligibility definition
-
LabelParameterValue
- Parameters:
name- parameter namedescription- parameter descriptionlabel- parameter label
-
-
Method Details
-
getNextLabels
Gets the labels to be used to trigger the next builds with- Returns:
- the labels
-
buildEnvironment
Exposes the name/value as an environment variable.- Overrides:
buildEnvironmentin classParameterValue
-
getAssignedLabel
- Overrides:
getAssignedLabelin classParameterValue
-
createVariableResolver
- Overrides:
createVariableResolverin classParameterValue
-
toString
-
getLabel
- Returns:
- the label
-
setLabel
- Parameters:
label- the label to set
-
createBuildWrapper
- Overrides:
createBuildWrapperin classParameterValue- See Also:
-
equals
- Overrides:
equalsin classParameterValue
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameterValue
-
addBadgeToBuild
adds a badge to the build which will be visible in the build history as an icon- Parameters:
build- the build to add the badge to
-