Package jetbrains.buildServer.agent
Interface ArtifactsPublisher
-
- All Superinterfaces:
AgentExtension
,TeamCityExtension
- All Known Subinterfaces:
ArtifactsCachePublisher
,DigestProducingArtifactsPublisher
- All Known Implementing Classes:
ArtifactsCachePublisherImpl
,BaseArtifactsPublisher
,MockArtifactsPublisher
,MockDigestProducingArtifactPublisher
,NullArtifactsPublisher
,WebPublisher
public interface ArtifactsPublisher extends AgentExtension
Agent extension for custom artifacts publishers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getType()
Get type string id.boolean
isEnabled()
Check if this publisher is currently enabled.int
publishFiles(Map<File,String> filePathMap)
Publishes files.
-
-
-
Method Detail
-
publishFiles
int publishFiles(@NotNull Map<File,String> filePathMap) 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 directory- Returns:
- number of successfully published files
- Throws:
ArtifactPublishingFailedException
- if publishing failed
-
isEnabled
boolean isEnabled()
Check if this publisher is currently enabled. Allows disabling/skipping publishers in runtime.- Returns:
- see above.
-
getType
@NotNull String getType()
Get type string id. Should matchjetbrains.buildServer.serverSide.storage.StorageType#getType()
- Returns:
- see above
- Since:
- 2017.1
-
-