Package hudson.plugins.copyartifact
Class WorkspaceSelector
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildSelector>
hudson.plugins.copyartifact.BuildSelector
hudson.plugins.copyartifact.WorkspaceSelector
- All Implemented Interfaces:
ExtensionPoint,Describable<BuildSelector>
Copy artifacts from the *workspace* of the latest completed 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 TypeMethodDescriptionprotected VirtualFilegetArtifacts(Run<?, ?> src, PrintStream console) Load artifacts from a given build.booleanisSelectable(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
getBuild, getBuild, getSourceDirectory, isBuildResultBetterOrEqualToMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Field Details
-
DESCRIPTOR
Deprecated.here for backward compatibility. Get it fromJenkins.getDescriptor(Class)
-
-
Constructor Details
-
WorkspaceSelector
@DataBoundConstructor public WorkspaceSelector()
-
-
Method Details
-
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
-
getArtifacts
protected VirtualFile getArtifacts(Run<?, ?> src, PrintStream console) throws IOException, InterruptedExceptionDescription copied from class:BuildSelectorLoad artifacts from a given build.- Overrides:
getArtifactsin classBuildSelector- Parameters:
src- a build which may have associated artifactsconsole- a way to print messages- Returns:
- a directory of artifacts, or null if missing
- Throws:
IOExceptionInterruptedException
-