Class AbstractShellBuildTask
- java.lang.Object
-
- com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask
-
- All Implemented Interfaces:
CommonTaskType
,InternalTaskType
- Direct Known Subclasses:
CommandBuildTask
,ScriptBuildTask
public abstract class AbstractShellBuildTask extends Object implements CommonTaskType
-
-
Field Summary
Fields Modifier and Type Field Description protected EnvironmentVariableAccessor
environmentVariableAccessor
protected ProcessService
processService
-
Constructor Summary
Constructors Constructor Description AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @NotNull TaskResult
execute(@NotNull CommonTaskContext taskContext)
Executes the task.protected TaskResult
execute(CommonTaskContext taskContext, ShellConfig config)
protected abstract ShellConfig
getConfig(@NotNull CommonTaskContext taskContext)
-
-
-
Field Detail
-
environmentVariableAccessor
protected final EnvironmentVariableAccessor environmentVariableAccessor
-
processService
protected final ProcessService processService
-
-
Constructor Detail
-
AbstractShellBuildTask
public AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService)
-
-
Method Detail
-
getConfig
protected abstract ShellConfig getConfig(@NotNull @NotNull CommonTaskContext taskContext)
-
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
-
-