hudson.plugins.copyartifact
Class SavedBuildSelector

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

public class SavedBuildSelector
extends BuildSelector

Copy artifacts from the latest saved build (marked "keep forever").

Author:
Alan.Harder@sun.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static hudson.model.Descriptor<BuildSelector> DESCRIPTOR
           
 
Constructor Summary
SavedBuildSelector()
           
 
Method Summary
 boolean isSelectable(hudson.model.Run<?,?> run, hudson.EnvVars env)
          Should this build be selected? Override just this method to use a standard loop through completed builds, starting with the most recent.
 
Methods inherited from class hudson.plugins.copyartifact.BuildSelector
getBuild, getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

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

SavedBuildSelector

@DataBoundConstructor
public SavedBuildSelector()
Method Detail

isSelectable

public boolean isSelectable(hudson.model.Run<?,?> run,
                            hudson.EnvVars env)
Description copied from class: BuildSelector
Should this build be selected? Override just this method to use a standard loop through completed builds, starting with the most recent.

Overrides:
isSelectable in class BuildSelector
Parameters:
run - Build to check
env - Environment for build that is copying artifacts
Returns:
True to select this build


Copyright © 2010. All Rights Reserved.