public abstract class ArtifactManagerFactory extends AbstractDescribableImpl<ArtifactManagerFactory> implements ExtensionPoint
config
view.
Since the user can configure this class, you must have a DataBoundConstructor
.ArtifactManagerConfiguration
,
ArtifactManagerFactoryDescriptor
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
ArtifactManagerFactory() |
Modifier and Type | Method and Description |
---|---|
ArtifactManagerFactoryDescriptor |
getDescriptor()
By default looks for a nested class (conventionally named
DescriptorImpl ) implementing Descriptor and marked with Extension . |
abstract ArtifactManager |
managerFor(Run<?,?> build)
Optionally creates a manager for a particular build.
|
@CheckForNull public abstract ArtifactManager managerFor(Run<?,?> build)
StandardArtifactManager
is used as a fallback.build
- a running (or recently completed) build ready for ArtifactManager.archive(hudson.FilePath, hudson.Launcher, hudson.model.BuildListener, java.util.Map<java.lang.String, java.lang.String>)
public ArtifactManagerFactoryDescriptor getDescriptor()
AbstractDescribableImpl
DescriptorImpl
) implementing Descriptor
and marked with Extension
.
Gets the descriptor for this instance.
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass()
then by default
a.getDescriptor() == b.getDescriptor()
as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor
in interface Describable<ArtifactManagerFactory>
getDescriptor
in class AbstractDescribableImpl<ArtifactManagerFactory>
Copyright © 2004–2019. All rights reserved.