Package hudson.plugins.copyartifact
Class StatusBuildSelector
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildSelector>
hudson.plugins.copyartifact.BuildSelector
hudson.plugins.copyartifact.StatusBuildSelector
- All Implemented Interfaces:
ExtensionPoint,Describable<BuildSelector>
Copy artifacts from the latest successful or stable build.
- Author:
- Alan Harder
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Descriptor<BuildSelector> Deprecated.here for backward compatibility. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSelectable(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.booleanisStable()voidsetStable(boolean stable) Methods inherited from class hudson.plugins.copyartifact.BuildSelector
getArtifacts, getBuild, getBuild, getSourceDirectory, isBuildResultBetterOrEqualToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Field Details
-
DESCRIPTOR
Deprecated.here for backward compatibility. Get it fromJenkins.getDescriptor(Class)
-
-
Constructor Details
-
StatusBuildSelector
Deprecated. -
StatusBuildSelector
@DataBoundConstructor public StatusBuildSelector()
-
-
Method Details
-
setStable
@DataBoundSetter public void setStable(boolean stable) -
isStable
public boolean isStable() -
isSelectable
Description copied from class:BuildSelectorShould this build be selected? Override just this method to use a standard loop through completed builds, starting with the most recent.- Overrides:
isSelectablein classBuildSelector- Parameters:
run- Build to checkenv- Environment for build that is copying artifacts- Returns:
- True to select this build
-