Class AbstractShellBuildTask
java.lang.Object
com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask
- All Implemented Interfaces:
CommonTaskType
,InternalTaskType
- Direct Known Subclasses:
CommandBuildTask
,ScriptBuildTask
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EnvironmentVariableAccessor
protected final ProcessService
-
Constructor Summary
ConstructorDescriptionAbstractShellBuildTask
(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService) -
Method Summary
Modifier and TypeMethodDescription@NotNull TaskResult
execute
(@NotNull CommonTaskContext taskContext) Executes the task.protected TaskResult
execute
(CommonTaskContext taskContext, ShellConfig config) protected abstract ShellConfig
getConfig
(@NotNull CommonTaskContext taskContext)
-
Field Details
-
environmentVariableAccessor
-
processService
-
-
Constructor Details
-
AbstractShellBuildTask
public AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService)
-
-
Method Details
-
getConfig
-
execute
@NotNull public @NotNull TaskResult execute(@NotNull @NotNull CommonTaskContext taskContext) throws TaskException Description copied from interface:CommonTaskType
Executes the task.- Specified by:
execute
in interfaceCommonTaskType
- Returns:
- a
TaskResult
representing the status of the task execution - Throws:
TaskException
-
execute
protected TaskResult execute(CommonTaskContext taskContext, ShellConfig config) throws TaskException - Throws:
TaskException
-