org.jvnet.jenkins.plugins.nodelabelparameter
Class LabelParameterValue

java.lang.Object
  extended by hudson.model.ParameterValue
      extended by 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

Field Summary
protected  List<String> nextLabels
           
 
Fields inherited from class hudson.model.ParameterValue
name
 
Constructor Summary
LabelParameterValue(String name)
           
LabelParameterValue(String name, List<String> labels, NodeEligibility nodeEligibility)
           
LabelParameterValue(String name, String label)
          Deprecated. 
LabelParameterValue(String name, String label, boolean allNodesMatchingLabel, NodeEligibility nodeEligibility)
           
LabelParameterValue(String name, String description, String label)
           
 
Method Summary
protected  void addBadgeToBuild(hudson.model.AbstractBuild<?,?> build)
          adds a badge to the build which will be visible in the build history as an icon
 void buildEnvVars(hudson.model.AbstractBuild<?,?> build, hudson.EnvVars env)
          Exposes the name/value as an environment variable.
 hudson.tasks.BuildWrapper createBuildWrapper(hudson.model.AbstractBuild<?,?> build)
           
 hudson.util.VariableResolver<String> createVariableResolver(hudson.model.AbstractBuild<?,?> build)
           
 boolean equals(Object o)
           
 hudson.model.Label getAssignedLabel(hudson.model.queue.SubTask task)
           
 String getLabel()
           
 List<String> getNextLabels()
          Gets the labels to be used to trigger the next builds with
 int hashCode()
           
 void setLabel(String label)
           
 String toString()
           
 
Methods inherited from class hudson.model.ParameterValue
buildEnvVars, getDefinition, getDescription, getName, getShortDescription, isSensitive, setDescription
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

nextLabels

protected List<String> nextLabels
Constructor Detail

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 -
Method Detail

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.