Interface CommandExecution
-
- All Superinterfaces:
EventListener,ProcessListener
public interface CommandExecution extends ProcessListener
Represents a process description to start withMultiCommandBuildSession- Since:
- 7.0
- See Also:
MultiCommandBuildSession
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbeforeProcessStarted()Called beforemakeProgramCommandLine()method is called and before process is startedTerminationActioninterruptRequested()booleanisCommandLineLoggingEnabled()ProgramCommandLinemakeProgramCommandLine()This method is called to build a commandline and environment variables set for build process that would be started and handled by core-
Methods inherited from interface jetbrains.buildServer.agent.runner.ProcessListener
onErrorOutput, onStandardOutput, processFinished, processStarted
-
-
-
-
Method Detail
-
makeProgramCommandLine
@NotNull ProgramCommandLine makeProgramCommandLine() throws RunBuildException
This method is called to build a commandline and environment variables set for build process that would be started and handled by core- Returns:
- commandline of build process to start
- Throws:
RunBuildException- if a problem occurred- Since:
- 7.0
-
beforeProcessStarted
void beforeProcessStarted() throws RunBuildExceptionCalled beforemakeProgramCommandLine()method is called and before process is started- Throws:
RunBuildException- if a problem occurred- Since:
- 7.0
-
interruptRequested
@NotNull TerminationAction interruptRequested()
- Returns:
- method that would be used to stop currently running step
- Since:
- 7.0
- See Also:
TerminationAction
-
isCommandLineLoggingEnabled
boolean isCommandLineLoggingEnabled()
- Returns:
- true is you need to log starting process commandline
- Since:
- 7.0
-
-