jetbrains.buildServer
Interface QueuedBuild

All Known Subinterfaces:
SQueuedBuild

public interface QueuedBuild

Information about configuration being currently in build queue.


Method Summary
 AgentRestrictor getAgentRestrictor()
           
 java.lang.Integer getBuildAgentId()
          Deprecated. use getAgentRestrictor(). If build configuration scheduled to some specific build agent, the id of the build agent is returned, otherwise null is returned.
 java.lang.String getBuildTypeId()
          Returns corresponding configuration id.
 java.lang.String getItemId()
          Returns unique id of this item in build queue.
 int getOrderNumber()
          Returns order number of this build in the queue starting from 1
 java.util.Date getWhenQueued()
          Returns date when configuration has been added to the queue.
 boolean isPersonal()
          Returns if the triggered build is personal.
 

Method Detail

getWhenQueued

@NotNull
java.util.Date getWhenQueued()
Returns date when configuration has been added to the queue.

Returns:
date when configuration has been added to the queue.

getItemId

@NotNull
java.lang.String getItemId()
Returns unique id of this item in build queue.

Returns:
id of this item.

getBuildTypeId

@NotNull
java.lang.String getBuildTypeId()
Returns corresponding configuration id.

Returns:
corresponding configuration id.

getBuildAgentId

@Deprecated
@Nullable
java.lang.Integer getBuildAgentId()
Deprecated. use getAgentRestrictor(). If build configuration scheduled to some specific build agent, the id of the build agent is returned, otherwise null is returned.

Returns:
build agent id to run build on or null

getAgentRestrictor

@Nullable
AgentRestrictor getAgentRestrictor()
Returns:
agent restrictor if the build is assigned to a specific set of agents, null otherwise.
Since:
7.0

isPersonal

boolean isPersonal()
Returns if the triggered build is personal.

Returns:
if the triggered build is personal.

getOrderNumber

int getOrderNumber()
Returns order number of this build in the queue starting from 1

Returns:
order number of this build