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:
Dominik Bartholdi (imod)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class hudson.model.ParameterValue
name
 
Constructor Summary
NodeParameterValue(String name, List<String> labels, boolean ignoreOfflineNodes)
          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()
          Gets the labels to be used to trigger the next builds with
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue
buildEnvVars, createVariableResolver, getAssignedLabel, getLabel, setLabel
 
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
 

Constructor Detail

NodeParameterValue

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

Parameters:
name - the name of the parameter
labels - the node labels to trigger one build after the other with
ignoreOfflineNodes - if the job should also be triggered on nodes which currently are not available for execution.

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()
Gets the labels to be used to trigger the next builds with

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-2013. All Rights Reserved.