Interface RepublishingArtifactHandler
-
- All Superinterfaces:
ArtifactHandler,BambooPluginModule
- All Known Implementing Classes:
ArtifactHandlerPackagingDecorator,BambooRemoteArtifactHandler,S3ArtifactHandler
@ExperimentalApi public interface RepublishingArtifactHandler extends ArtifactHandler
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
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description booleanisRepublishingSupported()If republishing is really supported.default @NotNull ArtifactHandlerPublishingResultrepublish(@NotNull ArtifactHandlerPublishingResult previousPublishingResult, @NotNull ResultKey resultKey, @NotNull ArtifactDefinitionContext artifact, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)@NotNull ArtifactHandlerPublishingResultrepublish(@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, publish, removeAllArtifactsOfChain, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactsFromStorage, removeArtifactsFromStorage, retrieve
-
-
-
-
Method Detail
-
republish
@Deprecated @NotNull default @NotNull ArtifactHandlerPublishingResult republish(@NotNull @NotNull ArtifactHandlerPublishingResult previousPublishingResult, @NotNull @NotNull ResultKey resultKey, @NotNull @NotNull ArtifactDefinitionContext artifact, @NotNull @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider) throws Exception
Deprecated.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
-
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
-
-