Package hudson.plugins.copyartifact
Class LastBuildWithArtifactSelector
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildSelector>
hudson.plugins.copyartifact.BuildSelector
hudson.plugins.copyartifact.LastBuildWithArtifactSelector
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildSelector>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSelectable
(Run<?, ?> run, 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
getArtifacts, getBuild, getBuild, getSourceDirectory, isBuildResultBetterOrEqualTo
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
LastBuildWithArtifactSelector
@DataBoundConstructor public LastBuildWithArtifactSelector()
-
-
Method Details
-
isSelectable
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 classBuildSelector
- Parameters:
run
- Build to checkenv
- Environment for build that is copying artifacts- Returns:
- True to select this build
-