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 void
addBadgeToBuild
(AbstractBuild<?, ?> build) adds a badge to the build which will be visible in the build history as an iconvoid
buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.createBuildWrapper
(AbstractBuild<?, ?> build) createVariableResolver
(AbstractBuild<?, ?> build) boolean
getAssignedLabel
(SubTask task) getLabel()
Gets the labels to be used to trigger the next builds withint
hashCode()
void
toString()
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:
buildEnvironment
in classParameterValue
-
getAssignedLabel
- Overrides:
getAssignedLabel
in classParameterValue
-
createVariableResolver
- Overrides:
createVariableResolver
in classParameterValue
-
toString
-
getLabel
- Returns:
- the label
-
setLabel
- Parameters:
label
- the label to set
-
createBuildWrapper
- Overrides:
createBuildWrapper
in classParameterValue
- See Also:
-
equals
- Overrides:
equals
in classParameterValue
-
hashCode
public int hashCode()- Overrides:
hashCode
in 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
-