jetbrains.buildServer.agent
Interface BuildProcess

All Known Implementing Classes:
BuildProcessAdapter

@UserImplemented(adapterClass=BuildProcessAdapter.class)
public interface BuildProcess

In most cases CommandLineBuildServiceFactory is the best possible extension point for build runners that deals with one process. Consider extending BuildProcessAdapter class instead of implementing this interface directly

Since:
4.0

Method Summary
 void interrupt()
          enforce build to stop.
 boolean isFinished()
           
 boolean isInterrupted()
          true iff build is finished and build was interrupted
 void start()
          This method is called to start runner.
 BuildFinishedStatus waitFor()
          Wait for Runner to finish or to interrupt
 

Method Detail

start

void start()
           throws RunBuildException
This method is called to start runner. Method could start either synchronously or asynchronously It is guaranteed that this method will be called prior to @waitFor method.

Throws:
RunBuildException - to stop the build with error
Since:
4.0

isInterrupted

boolean isInterrupted()
true iff build is finished and build was interrupted

Returns:
true iff build is finished and build was interrupted
Since:
4.0

isFinished

boolean isFinished()
Returns:
true iff build was finished
Since:
4.0

interrupt

void interrupt()
enforce build to stop. This operation is non-blocking.

Since:
4.0

waitFor

@NotNull
BuildFinishedStatus waitFor()
                            throws RunBuildException
Wait for Runner to finish or to interrupt

Returns:
build status
Throws:
RunBuildException - to indicate run build runner failure
Since:
4.0