Package jenkins.model
Class ArtifactManagerFactory
java.lang.Object
jenkins.model.ArtifactManagerFactory
- All Implemented Interfaces:
ExtensionPoint,Describable<ArtifactManagerFactory>
public abstract class ArtifactManagerFactory
extends Object
implements Describable<ArtifactManagerFactory>, ExtensionPoint
Pluggable ability to manage transfer and/or storage of build artifacts.
The descriptor should specify at least a display name, and optionally a
config view.
Since the user can configure this class, you must have a DataBoundConstructor.- Since:
- 1.532
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the descriptor for this instance.abstract ArtifactManagermanagerFor(Run<?, ?> build) Optionally creates a manager for a particular build.
-
Constructor Details
-
ArtifactManagerFactory
public ArtifactManagerFactory()
-
-
Method Details
-
managerFor
Optionally creates a manager for a particular build. All configured factories are consulted in sequence; the first manager thus yielded (if any) will be stored in the build.StandardArtifactManageris used as a fallback.- Parameters:
build- a running (or recently completed) build ready forArtifactManager.archive(hudson.FilePath, hudson.Launcher, hudson.model.BuildListener, java.util.Map<java.lang.String, java.lang.String>)- Returns:
- a manager, or null if this manager should not handle this kind of project, builds on this kind of agent, etc.
-
getDescriptor
Description copied from interface:DescribableGets the descriptor for this instance.Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)By default looks for a nested class (conventionally named
DescriptorImpl) implementingDescriptorand marked withExtension.- Specified by:
getDescriptorin interfaceDescribable<ArtifactManagerFactory>
-