Class AbstractShellBuildTask
java.lang.Object
com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask
- All Implemented Interfaces:
CommonTaskType,InternalTaskType
- Direct Known Subclasses:
CommandBuildTask,ScriptBuildTask
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EnvironmentVariableAccessorprotected final ProcessService -
Constructor Summary
ConstructorsConstructorDescriptionAbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService) -
Method Summary
Modifier and TypeMethodDescription@NotNull TaskResultexecute(@NotNull CommonTaskContext taskContext) Executes the task.protected TaskResultexecute(CommonTaskContext taskContext, ShellConfig config) protected abstract ShellConfiggetConfig(@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: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
-