org.jvnet.jenkins.plugins.nodelabelparameter
Class NodeParameterValue

java.lang.Object
  extended by hudson.model.ParameterValue
      extended by org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue
          extended by org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue
All Implemented Interfaces:
Serializable

public class NodeParameterValue
extends LabelParameterValue

Author:
domi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class hudson.model.ParameterValue
name
 
Constructor Summary
NodeParameterValue(String name, List<String> labels)
          creates a new node parameter
NodeParameterValue(String name, String description, String label)
           
 
Method Summary
 hudson.tasks.BuildWrapper createBuildWrapper(hudson.model.AbstractBuild<?,?> build)
           
 boolean equals(Object o)
           
 List<String> getNextLabels()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue
createVariableResolver, getAssignedLabel, getLabel, setLabel
 
Methods inherited from class hudson.model.ParameterValue
buildEnvVars, buildEnvVars, getDefinition, getDescription, getName, getShortDescription, isSensitive, setDescription
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeParameterValue

@DataBoundConstructor
public NodeParameterValue(String name,
                                               List<String> labels)
creates a new node parameter

Parameters:
name - the name of the parameter
labels - the node labels to trigger one build after the other with

NodeParameterValue

public NodeParameterValue(String name,
                          String description,
                          String label)
Method Detail

toString

public String toString()
Overrides:
toString in class LabelParameterValue

getNextLabels

public List<String> getNextLabels()
Returns:
the labels

createBuildWrapper

public hudson.tasks.BuildWrapper createBuildWrapper(hudson.model.AbstractBuild<?,?> build)
Overrides:
createBuildWrapper in class LabelParameterValue
See Also:
ParameterValue.createBuildWrapper(hudson.model.AbstractBuild)

equals

public boolean equals(Object o)
Overrides:
equals in class LabelParameterValue

hashCode

public int hashCode()
Overrides:
hashCode in class LabelParameterValue


Copyright © 2004-2011. All Rights Reserved.