Package com.atlassian.bamboo.process
Interface ProcessService
-
- All Known Implementing Classes:
ProcessServiceImpl
@PublicApi public interface ProcessService
Provides support for executingExternalProcess
s- Since:
- 3.1
-
-
Field Summary
Fields Modifier and Type Field Description static String
CBD_BUILD_COMMANDLINE
Key name in custom build data
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull com.atlassian.utils.process.ExternalProcess
createExternalProcess(@NotNull ProcessContext processContext, @NotNull ExternalProcessBuilder processBuilder)
Create a newExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
@NotNull com.atlassian.utils.process.ExternalProcess
createExternalProcess(@NotNull CommonTaskContext taskContext, @NotNull ExternalProcessBuilder processBuilder)
Create a newExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
@NotNull com.atlassian.utils.process.ExternalProcess
executeExternalProcess(@NotNull ProcessContext processContext, @NotNull ExternalProcessBuilder processBuilder)
Create and executeExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
@NotNull com.atlassian.utils.process.ExternalProcess
executeExternalProcess(@NotNull CommonTaskContext taskContext, @NotNull ExternalProcessBuilder processBuilder)
Create and executeExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
BackgroundTaskProcesses
getBackgroundProcesses()
Returns the container used to handle the currently running background processes.
-
-
-
Field Detail
-
CBD_BUILD_COMMANDLINE
static final String CBD_BUILD_COMMANDLINE
Key name in custom build data- See Also:
- Constant Field Values
-
-
Method Detail
-
createExternalProcess
@NotNull @NotNull com.atlassian.utils.process.ExternalProcess createExternalProcess(@NotNull @NotNull ProcessContext processContext, @NotNull @NotNull ExternalProcessBuilder processBuilder)
Create a newExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
- Parameters:
processContext
-processBuilder
-- Returns:
- externalProcess
-
createExternalProcess
@NotNull @NotNull com.atlassian.utils.process.ExternalProcess createExternalProcess(@NotNull @NotNull CommonTaskContext taskContext, @NotNull @NotNull ExternalProcessBuilder processBuilder)
Create a newExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
- Parameters:
taskContext
-processBuilder
-- Returns:
- externalProcess
-
executeExternalProcess
@NotNull @NotNull com.atlassian.utils.process.ExternalProcess executeExternalProcess(@NotNull @NotNull CommonTaskContext taskContext, @NotNull @NotNull ExternalProcessBuilder processBuilder)
Create and executeExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
- Parameters:
taskContext
-processBuilder
-- Returns:
- externalProcess
-
executeExternalProcess
@NotNull @NotNull com.atlassian.utils.process.ExternalProcess executeExternalProcess(@NotNull @NotNull ProcessContext processContext, @NotNull @NotNull ExternalProcessBuilder processBuilder)
Create and executeExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
- Parameters:
processContext
-processBuilder
-- Returns:
- externalProcess
-
getBackgroundProcesses
BackgroundTaskProcesses getBackgroundProcesses()
Returns the container used to handle the currently running background processes.
-
-