Class CommandTaskRuntimeDataProvider
java.lang.Object
com.atlassian.bamboo.plugins.command.task.configuration.CommandTaskRuntimeDataProvider
- All Implemented Interfaces:
RuntimeTaskDataProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpopulateRuntimeTaskData
(@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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.task.RuntimeTaskDataProvider
createRuntimeTaskData
-
Constructor Details
-
CommandTaskRuntimeDataProvider
public CommandTaskRuntimeDataProvider()
-
-
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
-
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
-