Package jetbrains.buildServer.agent
Interface DigestProducingArtifactsPublisher
-
- All Superinterfaces:
AgentExtension
,ArtifactsPublisher
,TeamCityExtension
- All Known Implementing Classes:
MockDigestProducingArtifactPublisher
,WebPublisher
public interface DigestProducingArtifactsPublisher extends ArtifactsPublisher
Agent extension for custom artifacts publishers that can calculate artifact digests.- Since:
- 2022.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
publishFilesWithDigests(Map<File,String> filePathMap, FlowLogger logger, Consumer<ArtifactDigestInfo> digestConsumer)
Publishes files.-
Methods inherited from interface jetbrains.buildServer.agent.ArtifactsPublisher
getType, isEnabled, publishFiles
-
-
-
-
Method Detail
-
publishFilesWithDigests
int publishFilesWithDigests(@NotNull Map<File,String> filePathMap, @NotNull FlowLogger logger, @Nullable Consumer<ArtifactDigestInfo> digestConsumer) throws ArtifactPublishingFailedException
Publishes files. Note that publishing is performed from the agent messages queue and thus this method can be called when build on the agent is already finished.- Parameters:
filePathMap
- map of the file to publish to its destination directorydigestConsumer
- optional consumer for artifact digests- Returns:
- Number of published artifacts
- Throws:
ArtifactPublishingFailedException
- if publishing failed
-
-