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 AgentPoolgetAgentPoolToRunOn()SBuildAgentgetAgentToRunOn()SAgentTypegetAgentTypeToRunOn()BuildPromotiongetBuildPromotion()Returns build which will be added to the queue.booleanisCollectChangesEarly()booleanisMoveToTheQueueTop()voidsetCollectChangesEarly(boolean collectChangesEarly)Set to true to start changes collecting right after the build is added to the queue.voidsetMoveToTheQueueTop(boolean moveToTop)Set to true if build must be moved to the queue top.voidsetRunOnAgent(SBuildAgent agent)Assigns build to the specified agent.voidsetRunOnAgentFromPool(AgentPool pool)Sets pool where the build should be started.voidsetRunOnAgentType(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:TriggerTaskSets pool where the build should be started. The build will be started on the idle agent from this pool.- Specified by:
setRunOnAgentFromPoolin interfaceTriggerTask- Parameters:
pool- agent pool where to start build
-
setRunOnAgent
public void setRunOnAgent(@NotNull SBuildAgent agent)Description copied from interface:TriggerTaskAssigns build to the specified agent. If both pool and agent are set, agent will have higher precedence.- Specified by:
setRunOnAgentin interfaceTriggerTask- Parameters:
agent- agent where to start build
-
setMoveToTheQueueTop
public void setMoveToTheQueueTop(boolean moveToTop)
Description copied from interface:TriggerTaskSet to true if build must be moved to the queue top.- Specified by:
setMoveToTheQueueTopin interfaceTriggerTask- Parameters:
moveToTop- true to move build to the queue top, false by default.
-
setCollectChangesEarly
public void setCollectChangesEarly(boolean collectChangesEarly)
Description copied from interface:TriggerTaskSet to true to start changes collecting right after the build is added to the queue.- Specified by:
setCollectChangesEarlyin interfaceTriggerTask- Parameters:
collectChangesEarly- true to collect changes after adding to the queue.
-
isMoveToTheQueueTop
public boolean isMoveToTheQueueTop()
- Specified by:
isMoveToTheQueueTopin interfaceTriggerTask- Returns:
- true if build must be moved to the top of the queue.
-
isCollectChangesEarly
public boolean isCollectChangesEarly()
- Specified by:
isCollectChangesEarlyin interfaceTriggerTask- Returns:
- true if changes must be collected after adding to the queue.
-
getBuildPromotion
@NotNull public BuildPromotion getBuildPromotion()
Description copied from interface:TriggerTaskReturns build which will be added to the queue.- Specified by:
getBuildPromotionin interfaceTriggerTask- Returns:
-
getAgentPoolToRunOn
@Nullable public AgentPool getAgentPoolToRunOn()
- Specified by:
getAgentPoolToRunOnin interfaceTriggerTask- Returns:
- pool where to start build or null if pool is not set.
-
getAgentToRunOn
@Nullable public SBuildAgent getAgentToRunOn()
- Specified by:
getAgentToRunOnin interfaceTriggerTask- Returns:
- agent where to start build or null.
-
getAgentTypeToRunOn
@Nullable public SAgentType getAgentTypeToRunOn()
- Specified by:
getAgentTypeToRunOnin interfaceTriggerTask
-
setRunOnAgentType
public void setRunOnAgentType(@NotNull SAgentType agentType)Description copied from interface:TriggerTaskAssigns build to the specified agent. If both pool and agent are set, agent will have higher precedence.- Specified by:
setRunOnAgentTypein interfaceTriggerTask
-
-