hudson.plugins.copyartifact
Class BuildSelector
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildSelector>
hudson.plugins.copyartifact.BuildSelector
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<BuildSelector>
- Direct Known Subclasses:
- ParameterizedBuildSelector, PermalinkBuildSelector, SavedBuildSelector, SpecificBuildSelector, StatusBuildSelector, WorkspaceSelector
public abstract class BuildSelector
- extends hudson.model.AbstractDescribableImpl<BuildSelector>
- implements hudson.ExtensionPoint
Extension point for selecting the build to copy artifacts from.
In a subclass override just isSelectable() for a standard loop through completed
builds, starting with the most recent. Otherwise override getBuild() to provide
different build selection logic.
- Author:
- Alan Harder
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Method Summary |
hudson.model.Run<?,?> |
getBuild(hudson.model.Job<?,?> job,
hudson.EnvVars env)
Find a build to copy artifacts from. |
protected 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.model.AbstractDescribableImpl |
getDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildSelector
public BuildSelector()
getBuild
public hudson.model.Run<?,?> getBuild(hudson.model.Job<?,?> job,
hudson.EnvVars env)
- Find a build to copy artifacts from.
- Parameters:
job - Source projectenv - Environment for build that is copying artifacts
- Returns:
- Build to use, or null if no appropriate build was found
isSelectable
protected 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.
- Parameters:
run - Build to checkenv - Environment for build that is copying artifacts
- Returns:
- True to select this build
Copyright © 2010. All Rights Reserved.