Interface MultiCommandBuildSession
-
public interface MultiCommandBuildSession
Represents multi-process build runner. The implementation of build runner may start any number of processes as it needed within one build step- Since:
- 7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandExecution
getNextCommand()
This method is used to iterate through a dynamic list of processes that runner implementation is running.BuildFinishedStatus
sessionFinished()
This method is called aftergetNextCommand()
loop is finishedvoid
sessionStarted()
Called to notify start of the build session
-
-
-
Method Detail
-
sessionStarted
void sessionStarted() throws RunBuildException
Called to notify start of the build session- Throws:
RunBuildException
- implementation may throw exception to stop execution and mark build failed- Since:
- 7.0
-
getNextCommand
@Nullable CommandExecution getNextCommand() throws RunBuildException
This method is used to iterate through a dynamic list of processes that runner implementation is running. This method is called first aftersessionStarted()
. Than, core starts a process from returnedCommandExecution
data. When process is finished implementation calls the method once more. Than next process is started. Core would be repeated it until this method returns null or throwsRunBuildException
- Returns:
- next process to execute or null to finish execution loop
- Throws:
RunBuildException
- implementation may throw exception to stop execution and mark build failed- Since:
- 7.0
-
sessionFinished
@Nullable BuildFinishedStatus sessionFinished()
This method is called aftergetNextCommand()
loop is finished- Returns:
- final build runner execution status
- Since:
- 7.0
-
-