hudson.plugins.copyartifact
Class ParameterizedBuildSelector

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<BuildSelector>
      extended by hudson.plugins.copyartifact.BuildSelector
          extended by hudson.plugins.copyartifact.ParameterizedBuildSelector
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<BuildSelector>

public class ParameterizedBuildSelector
extends BuildSelector

Use a parameter to specify how the build is selected.

Author:
Alan Harder
See Also:
BuildSelectorParameter

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static hudson.model.Descriptor<BuildSelector> DESCRIPTOR
           
 
Constructor Summary
ParameterizedBuildSelector(java.lang.String parameterName)
           
 
Method Summary
 hudson.model.Run<?,?> getBuild(hudson.model.Job<?,?> job, hudson.EnvVars env)
          Find a build to copy artifacts from.
 java.lang.String getParameterName()
           
 
Methods inherited from class hudson.plugins.copyartifact.BuildSelector
isSelectable
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

@Extension(ordinal=-20.0)
public static final hudson.model.Descriptor<BuildSelector> DESCRIPTOR
Constructor Detail

ParameterizedBuildSelector

@DataBoundConstructor
public ParameterizedBuildSelector(java.lang.String parameterName)
Method Detail

getParameterName

public java.lang.String getParameterName()

getBuild

public hudson.model.Run<?,?> getBuild(hudson.model.Job<?,?> job,
                                      hudson.EnvVars env)
Description copied from class: BuildSelector
Find a build to copy artifacts from.

Overrides:
getBuild in class BuildSelector
Parameters:
job - Source project
env - Environment for build that is copying artifacts
Returns:
Build to use, or null if no appropriate build was found


Copyright © 2010. All Rights Reserved.