Package jetbrains.buildServer.agent
Class NullArtifactsPublisher
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.BaseArtifactsPublisher
-
- jetbrains.buildServer.agent.MockArtifactsPublisher
-
- jetbrains.buildServer.agent.NullArtifactsPublisher
-
- All Implemented Interfaces:
AgentExtension
,ArtifactsPublisher
,TeamCityExtension
public class NullArtifactsPublisher extends MockArtifactsPublisher
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.agent.MockArtifactsPublisher
myPaths, myTargets
-
-
Constructor Summary
Constructors Constructor Description NullArtifactsPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
publishFiles(Map<File,String> filePathMap)
Publishes files.-
Methods inherited from class jetbrains.buildServer.agent.MockArtifactsPublisher
assertCallCount, getTargetPaths, getType
-
Methods inherited from class jetbrains.buildServer.agent.impl.BaseArtifactsPublisher
isEnabled
-
-
-
-
Method Detail
-
publishFiles
public int publishFiles(@NotNull Map<File,String> filePathMap) throws ArtifactPublishingFailedException
Description copied from interface:ArtifactsPublisher
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:
publishFiles
in interfaceArtifactsPublisher
- Overrides:
publishFiles
in classMockArtifactsPublisher
- Parameters:
filePathMap
- map of the file to publish to its destination directory- Returns:
- number of successfully published files
- Throws:
ArtifactPublishingFailedException
- if publishing failed
-
-