Class BatchTriggerTaskImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.BatchTriggerTaskImpl
-
- All Implemented Interfaces:
TriggerTask
public class BatchTriggerTaskImpl extends Object implements TriggerTask
-
-
Constructor Summary
Constructors Constructor Description BatchTriggerTaskImpl(BuildPromotion promotion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentPool
getAgentPoolToRunOn()
SBuildAgent
getAgentToRunOn()
SAgentType
getAgentTypeToRunOn()
BuildPromotion
getBuildPromotion()
Returns build which will be added to the queue.boolean
isCollectChangesEarly()
boolean
isMoveToTheQueueTop()
void
setCollectChangesEarly(boolean collectChangesEarly)
Set to true to start changes collecting right after the build is added to the queue.void
setMoveToTheQueueTop(boolean moveToTop)
Set to true if build must be moved to the queue top.void
setRunOnAgent(SBuildAgent agent)
Assigns build to the specified agent.void
setRunOnAgentFromPool(AgentPool pool)
Sets pool where the build should be started.void
setRunOnAgentType(SAgentType agentType)
Assigns build to the specified agent.
-
-
-
Constructor Detail
-
BatchTriggerTaskImpl
public BatchTriggerTaskImpl(@NotNull BuildPromotion promotion)
-
-
Method Detail
-
setRunOnAgentFromPool
public void setRunOnAgentFromPool(@NotNull AgentPool pool)
Description copied from interface:TriggerTask
Sets pool where the build should be started. The build will be started on the idle agent from this pool.- Specified by:
setRunOnAgentFromPool
in interfaceTriggerTask
- Parameters:
pool
- agent pool where to start build
-
setRunOnAgent
public void setRunOnAgent(@NotNull SBuildAgent agent)
Description copied from interface:TriggerTask
Assigns build to the specified agent. If both pool and agent are set, agent will have higher precedence.- Specified by:
setRunOnAgent
in interfaceTriggerTask
- Parameters:
agent
- agent where to start build
-
setMoveToTheQueueTop
public void setMoveToTheQueueTop(boolean moveToTop)
Description copied from interface:TriggerTask
Set to true if build must be moved to the queue top.- Specified by:
setMoveToTheQueueTop
in interfaceTriggerTask
- Parameters:
moveToTop
- true to move build to the queue top, false by default.
-
setCollectChangesEarly
public void setCollectChangesEarly(boolean collectChangesEarly)
Description copied from interface:TriggerTask
Set to true to start changes collecting right after the build is added to the queue.- Specified by:
setCollectChangesEarly
in interfaceTriggerTask
- Parameters:
collectChangesEarly
- true to collect changes after adding to the queue.
-
isMoveToTheQueueTop
public boolean isMoveToTheQueueTop()
- Specified by:
isMoveToTheQueueTop
in interfaceTriggerTask
- Returns:
- true if build must be moved to the top of the queue.
-
isCollectChangesEarly
public boolean isCollectChangesEarly()
- Specified by:
isCollectChangesEarly
in interfaceTriggerTask
- Returns:
- true if changes must be collected after adding to the queue.
-
getBuildPromotion
@NotNull public BuildPromotion getBuildPromotion()
Description copied from interface:TriggerTask
Returns build which will be added to the queue.- Specified by:
getBuildPromotion
in interfaceTriggerTask
- Returns:
-
getAgentPoolToRunOn
@Nullable public AgentPool getAgentPoolToRunOn()
- Specified by:
getAgentPoolToRunOn
in interfaceTriggerTask
- Returns:
- pool where to start build or null if pool is not set.
-
getAgentToRunOn
@Nullable public SBuildAgent getAgentToRunOn()
- Specified by:
getAgentToRunOn
in interfaceTriggerTask
- Returns:
- agent where to start build or null.
-
getAgentTypeToRunOn
@Nullable public SAgentType getAgentTypeToRunOn()
- Specified by:
getAgentTypeToRunOn
in interfaceTriggerTask
-
setRunOnAgentType
public void setRunOnAgentType(@NotNull SAgentType agentType)
Description copied from interface:TriggerTask
Assigns build to the specified agent. If both pool and agent are set, agent will have higher precedence.- Specified by:
setRunOnAgentType
in interfaceTriggerTask
-
-