Class ServerLocalArtifactHandler
java.lang.Object
com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
com.atlassian.bamboo.build.artifact.AbstractLocalArtifactHandler
com.atlassian.bamboo.build.artifact.ServerLocalArtifactHandler
- All Implemented Interfaces:
ArtifactHandler
,InitablePluginModule<ArtifactHandlerModuleDescriptor>
,BambooPluginModule
-
Field Summary
Fields inherited from class com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
ALL_AGENT_TYPES, LOCAL_AGENTS, NON_LOCAL_AGENTS
Fields inherited from interface com.atlassian.bamboo.build.artifact.ArtifactHandler
LAN_SPEED, LOCAL_SPEED, NEVER_ARCHIVE, WAN_SPEED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ArtifactDirectoryBuilder
getArtifactDirectoryBuilder
(@NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider) protected String
long
getMaxUnarchivedFilesPerArtifact
(@NotNull Map<String, String> artifactHandlersConfiguration) Returns the maximum number of files that can exist per artifact which will not be compressed and combined into a single archive.@NotNull ArtifactHandlerPublishingResult
publish
(@NotNull ResultKey resultKey, @NotNull ArtifactDefinitionContext artifact, @NotNull ArtifactPublishingConfig artifactPublishingConfig, @Nullable BuildLogger buildLogger) Methods inherited from class com.atlassian.bamboo.build.artifact.AbstractLocalArtifactHandler
getArtifactLinkDataProvider, getArtifactLinkDataProvider, getArtifactStorageDirectory, getArtifactStorageDirectory, getSpeed, moveArtifactToGlobalStorage, removeAllArtifactsOfChain, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactsFromStorage, removeArtifactsFromStorage, retrieve
Methods inherited from class com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
canHandleArtifact, configProvider, configProvider, getConfigValue, getDefaultConfiguration, getModuleDescriptor, getSupportedAgents, init
-
Constructor Details
-
ServerLocalArtifactHandler
public ServerLocalArtifactHandler()
-
-
Method Details
-
getConfigurationKey
- Overrides:
getConfigurationKey
in classAbstractArtifactHandler
-
publish
@NotNull public @NotNull ArtifactHandlerPublishingResult publish(@NotNull @NotNull ResultKey resultKey, @NotNull @NotNull ArtifactDefinitionContext artifact, @NotNull @NotNull ArtifactPublishingConfig artifactPublishingConfig, @Nullable @Nullable BuildLogger buildLogger) throws IOException - Specified by:
publish
in interfaceArtifactHandler
- Overrides:
publish
in classAbstractLocalArtifactHandler
- Throws:
IOException
-
getArtifactDirectoryBuilder
protected ArtifactDirectoryBuilder getArtifactDirectoryBuilder(@NotNull @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider) - Specified by:
getArtifactDirectoryBuilder
in classAbstractLocalArtifactHandler
-
getMaxUnarchivedFilesPerArtifact
public long getMaxUnarchivedFilesPerArtifact(@NotNull @NotNull Map<String, String> artifactHandlersConfiguration) Description copied from interface:ArtifactHandler
Returns the maximum number of files that can exist per artifact which will not be compressed and combined into a single archive. If the threshold is exceeded, artifacts will be packaged into a single file before publishing.
ArtifactHandler
does not need to treat archived artifacts differently - from ArtifactHandler perspective the packaging is transparent. Artifact files will be compressed before invoking #publish method and decompressed after invoking #retrieve method.This method should return
ArtifactHandler.NEVER_ARCHIVE
if packaging of artifacts is disabled, to always send files unarchived.- Specified by:
getMaxUnarchivedFilesPerArtifact
in interfaceArtifactHandler
- Overrides:
getMaxUnarchivedFilesPerArtifact
in classAbstractArtifactHandler
- Parameters:
artifactHandlersConfiguration
- artifact handler configuration- Returns:
- maximum number of files per artifact that should not be packaged into a single file
-