Interface RepublishingArtifactHandler
- All Superinterfaces:
ArtifactHandler
,BambooPluginModule
- All Known Implementing Classes:
ArtifactHandlerPackagingDecorator
,BambooRemoteArtifactHandler
,S3ArtifactHandler
Artifact handler that supports build resiliency by allowing republishing or artifacts.
- Since:
- 8.0
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.build.artifact.ArtifactHandler
LAN_SPEED, LOCAL_SPEED, NEVER_ARCHIVE, WAN_SPEED
-
Method Summary
Modifier and TypeMethodDescriptionboolean
If republishing is really supported.@NotNull ArtifactHandlerPublishingResult
republish
(@NotNull ArtifactHandlerPublishingResult previousPublishingResult, @NotNull ResultKey resultKey, @NotNull ArtifactDefinitionContext artifact, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider, @Nullable BuildLogger buildLogger) Method called when remote agent tries to recover from result publishing failures.Methods inherited from interface com.atlassian.bamboo.build.artifact.ArtifactHandler
canHandleArtifact, getArtifactLinkDataProvider, getArtifactLinkDataProvider, getDefaultConfiguration, getMaxUnarchivedFilesPerArtifact, getModuleDescriptor, getSpeed, getSupportedAgents, moveArtifactToGlobalStorage, publish, removeAllArtifactsOfChain, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactsFromStorage, removeArtifactsFromStorage, retrieve
-
Method Details
-
republish
@NotNull @NotNull ArtifactHandlerPublishingResult republish(@NotNull @NotNull ArtifactHandlerPublishingResult previousPublishingResult, @NotNull @NotNull ResultKey resultKey, @NotNull @NotNull ArtifactDefinitionContext artifact, @NotNull @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider, @Nullable @Nullable BuildLogger buildLogger) throws Exception Method called when remote agent tries to recover from result publishing failures. It is called if the previous attempt of transferring the artifact returned statusArtifactHandlerPublishingResult.Status.DEFERRED
.- Throws:
Exception
-
isRepublishingSupported
boolean isRepublishingSupported()If republishing is really supported. Necessary because of handlers that wrap other handlers.- Returns:
- true iff republishing is actually supported
-