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 EnvironmentVariableAccessorenvironmentVariableAccessorprotected ProcessServiceprocessService
-
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 TaskResultexecute(@NotNull CommonTaskContext taskContext)Executes the task.protected TaskResultexecute(CommonTaskContext taskContext, ShellConfig config)protected abstract ShellConfiggetConfig(@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:CommonTaskTypeExecutes the task.- Specified by:
executein interfaceCommonTaskType- Returns:
- a
TaskResultrepresenting the status of the task execution - Throws:
TaskException
-
execute
protected TaskResult execute(CommonTaskContext taskContext, ShellConfig config) throws TaskException
- Throws:
TaskException
-
-