Class ArtifactDownloaderRuntimeDataProvider
java.lang.Object
com.atlassian.bamboo.plugins.artifact.ArtifactDownloaderRuntimeDataProvider
- All Implemented Interfaces:
RuntimeTaskDataProvider
public class ArtifactDownloaderRuntimeDataProvider
extends Object
implements RuntimeTaskDataProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Map<String,
WhitelistedSerializable> createRuntimeTaskData
(@NotNull RuntimeTaskDefinition taskDefinition, @NotNull CommonContext commonContext) Server side pre-build action that may be implemented by task.populateRuntimeTaskData
(@NotNull TaskDefinition taskDefinition, @NotNull CommonContext commonContext) Server side pre-build action that may be implemented by task.void
processRuntimeTaskData
(@NotNull RuntimeTaskDefinition taskDefinition, @NotNull CommonContext commonContext) Server side post-build action that may be implemented by task.
-
Constructor Details
-
ArtifactDownloaderRuntimeDataProvider
public ArtifactDownloaderRuntimeDataProvider()
-
-
Method Details
-
populateRuntimeTaskData
@NotNull public @NotNull Map<String,String> populateRuntimeTaskData(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull CommonContext commonContext) Description copied from interface:RuntimeTaskDataProvider
Server side pre-build action that may be implemented by task. Custom data for task execution evaluated on server should be returned for this method and will be accessible for task execution on agent Data are accessible inTaskContext.getRuntimeTaskContext()
- Specified by:
populateRuntimeTaskData
in interfaceRuntimeTaskDataProvider
- Returns:
- custom data for agent side task execution
-
createRuntimeTaskData
@NotNull public @NotNull Map<String,WhitelistedSerializable> createRuntimeTaskData(@NotNull @NotNull RuntimeTaskDefinition taskDefinition, @NotNull @NotNull CommonContext commonContext) Description copied from interface:RuntimeTaskDataProvider
Server side pre-build action that may be implemented by task. Custom data for task execution evaluated on server should be returned for this method and will be accessible for task execution on agent Data are accessible inCommonTaskContext.getRuntimeTaskData()
It's guaranteed that this method is called afterRuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)
, and that callingRuntimeTaskDefinition.getRuntimeContext()
inside implementation will yield previously populated context.- Specified by:
createRuntimeTaskData
in interfaceRuntimeTaskDataProvider
- Returns:
- custom data for agent side task execution
-
processRuntimeTaskData
public void processRuntimeTaskData(@NotNull @NotNull RuntimeTaskDefinition taskDefinition, @NotNull @NotNull CommonContext commonContext) Description copied from interface:RuntimeTaskDataProvider
Server side post-build action that may be implemented by task. May be used to process custom data returned by task, or to clean up data that may be left by previous call. Data is accessible inRuntimeTaskDefinition.getRuntimeContext()
and/orRuntimeTaskDefinition.getRuntimeData()
- Specified by:
processRuntimeTaskData
in interfaceRuntimeTaskDataProvider
-