org.jvnet.jenkins.plugins.nodelabelparameter
Class LabelParameterValue
java.lang.Object
hudson.model.ParameterValue
org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- NodeParameterValue
public class LabelParameterValue
- extends hudson.model.ParameterValue
- Author:
- Dominik Bartholdi (imod)
- See Also:
- Serialized Form
| Fields inherited from class hudson.model.ParameterValue |
name |
| Methods inherited from class hudson.model.ParameterValue |
buildEnvVars, getDefinition, getDescription, getName, getShortDescription, isSensitive, setDescription |
nextLabels
protected List<String> nextLabels
LabelParameterValue
public LabelParameterValue(String name)
LabelParameterValue
@Deprecated
public LabelParameterValue(String name,
String label)
- Deprecated.
LabelParameterValue
public LabelParameterValue(String name,
List<String> labels,
NodeEligibility nodeEligibility)
LabelParameterValue
@DataBoundConstructor
public LabelParameterValue(String name,
String label,
boolean allNodesMatchingLabel,
NodeEligibility nodeEligibility)
- Parameters:
name -
LabelParameterValue
public LabelParameterValue(String name,
String description,
String label)
- Parameters:
name - description -
getNextLabels
public List<String> getNextLabels()
- Gets the labels to be used to trigger the next builds with
- Returns:
- the labels
buildEnvVars
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
hudson.EnvVars env)
- Exposes the name/value as an environment variable.
- Overrides:
buildEnvVars in class hudson.model.ParameterValue
getAssignedLabel
public hudson.model.Label getAssignedLabel(hudson.model.queue.SubTask task)
- Overrides:
getAssignedLabel in class hudson.model.ParameterValue
createVariableResolver
public hudson.util.VariableResolver<String> createVariableResolver(hudson.model.AbstractBuild<?,?> build)
- Overrides:
createVariableResolver in class hudson.model.ParameterValue
toString
public String toString()
- Overrides:
toString in class Object
getLabel
public String getLabel()
- Returns:
- the label
setLabel
public void setLabel(String label)
- Parameters:
label - the label to set
createBuildWrapper
public hudson.tasks.BuildWrapper createBuildWrapper(hudson.model.AbstractBuild<?,?> build)
- Overrides:
createBuildWrapper in class hudson.model.ParameterValue
- See Also:
ParameterValue.createBuildWrapper(hudson.model.AbstractBuild)
equals
public boolean equals(Object o)
- Overrides:
equals in class hudson.model.ParameterValue
hashCode
public int hashCode()
- Overrides:
hashCode in class hudson.model.ParameterValue
addBadgeToBuild
protected void addBadgeToBuild(hudson.model.AbstractBuild<?,?> build)
- 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
Copyright © 2004-2014. All Rights Reserved.