Package jetbrains.buildServer.agent
Class MockDigestProducingArtifactPublisher
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.BaseArtifactsPublisher
-
- jetbrains.buildServer.agent.MockArtifactsPublisher
-
- jetbrains.buildServer.agent.MockDigestProducingArtifactPublisher
-
- All Implemented Interfaces:
AgentExtension
,ArtifactsPublisher
,DigestProducingArtifactsPublisher
,TeamCityExtension
public class MockDigestProducingArtifactPublisher extends MockArtifactsPublisher implements DigestProducingArtifactsPublisher
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.agent.MockArtifactsPublisher
myPaths, myTargets
-
-
Constructor Summary
Constructors Constructor Description MockDigestProducingArtifactPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
publishFilesWithDigests(Map<File,String> filePathMap, FlowLogger logger, Consumer<ArtifactDigestInfo> digestConsumer)
Publishes files.-
Methods inherited from class jetbrains.buildServer.agent.MockArtifactsPublisher
assertCallCount, getTargetPaths, getType, publishFiles
-
Methods inherited from class jetbrains.buildServer.agent.impl.BaseArtifactsPublisher
isEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.agent.ArtifactsPublisher
getType, isEnabled, publishFiles
-
-
-
-
Method Detail
-
publishFilesWithDigests
public int publishFilesWithDigests(@NotNull Map<File,String> filePathMap, @NotNull FlowLogger logger, @Nullable Consumer<ArtifactDigestInfo> digestConsumer) throws ArtifactPublishingFailedException
Description copied from interface:DigestProducingArtifactsPublisher
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.- Specified by:
publishFilesWithDigests
in interfaceDigestProducingArtifactsPublisher
- 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
-
-