Package jenkins.model
Class ArtifactManagerFactory
- All Implemented Interfaces:
ExtensionPoint
,Describable<ArtifactManagerFactory>
public abstract class ArtifactManagerFactory
extends AbstractDescribableImpl<ArtifactManagerFactory>
implements 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
-
Method Summary
Modifier and TypeMethodDescriptionBy default looks for a nested class (conventionally namedDescriptorImpl
) implementingDescriptor
and marked withExtension
.abstract ArtifactManager
managerFor
(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.StandardArtifactManager
is 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 class:AbstractDescribableImpl
By default looks for a nested class (conventionally namedDescriptorImpl
) implementingDescriptor
and marked withExtension
.Gets the descriptor for this instance.
Descriptor
is a singleton for every concreteDescribable
implementation, 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.)- Specified by:
getDescriptor
in interfaceDescribable<ArtifactManagerFactory>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<ArtifactManagerFactory>
-