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 aconfigview. 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 ArtifactManagerFactoryDescriptorgetDescriptor()By default looks for a nested class (conventionally namedDescriptorImpl) implementingDescriptorand marked withExtension.abstract ArtifactManagermanagerFor(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.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
public ArtifactManagerFactoryDescriptor getDescriptor()
Description copied from class:AbstractDescribableImplBy default looks for a nested class (conventionally namedDescriptorImpl) implementingDescriptorand marked withExtension.Gets 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.)- Specified by:
getDescriptorin interfaceDescribable<ArtifactManagerFactory>- Overrides:
getDescriptorin classAbstractDescribableImpl<ArtifactManagerFactory>
-
-