Package jenkins.model
Class ArtifactManagerFactory
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ArtifactManagerFactory>
-
- jenkins.model.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 aconfig
view. Since the user can configure this class, you must have aDataBoundConstructor
.- Since:
- 1.532
- See Also:
ArtifactManagerConfiguration
,ArtifactManagerFactoryDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ArtifactManagerFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ArtifactManagerFactoryDescriptor
getDescriptor()
By 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.
-
-
-
Method Detail
-
managerFor
@CheckForNull public abstract ArtifactManager managerFor(Run<?,?> build)
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
public ArtifactManagerFactoryDescriptor 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>
-
-