jetbrains.buildServer.agent
Interface CurrentBuildTracker


public interface CurrentBuildTracker

Interface for getting currenly running build


Method Summary
 AgentRunningBuild getCurrentBuild()
          Returns running build or throws an exception if no running build
 boolean isRunningBuild()
           
 

Method Detail

getCurrentBuild

@NotNull
AgentRunningBuild getCurrentBuild()
                                  throws NoRunningBuildException
Returns running build or throws an exception if no running build

Returns:
running build
Throws:
NoRunningBuildException - if there is no running build

isRunningBuild

boolean isRunningBuild()
Returns:
whether build is running on agent now