Package com.atlassian.bamboo.process
Interface ProcessService
- All Known Implementing Classes:
ProcessServiceImpl
@PublicApi
public interface ProcessService
Provides support for executing
ExternalProcess
s- Since:
- 3.1
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription@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
Returns the container used to handle the currently running background processes.
-
Field Details
-
CBD_BUILD_COMMANDLINE
Key name in custom build data- See Also:
-
-
Method Details
-
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.
-