Package jetbrains.buildServer.serverSide
Interface BatchTrigger
-
- All Known Subinterfaces:
BuildQueueEx
- All Known Implementing Classes:
BuildQueueImpl,SecuredBuildQueue
public interface BatchTrigger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TriggerTasknewTriggerTask(BuildPromotion promotion)Creates new trigger task based on specified build promotion.List<SQueuedBuild>processTasks(Collection<TriggerTask> tasks, String triggeredBy)Processes collection of trigger tasks, by adding builds in the queue with parameters specified in these tasks.
-
-
-
Method Detail
-
newTriggerTask
@NotNull TriggerTask newTriggerTask(@NotNull BuildPromotion promotion)
Creates new trigger task based on specified build promotion.- Parameters:
promotion- build promotion which will be added to the queue- Returns:
- new task
-
processTasks
@NotNull List<SQueuedBuild> processTasks(@NotNull Collection<TriggerTask> tasks, @NotNull String triggeredBy)
Processes collection of trigger tasks, by adding builds in the queue with parameters specified in these tasks.- Parameters:
tasks- trigger tasks describing how to add builds in the queuetriggeredBy- some information about who triggers these builds- Returns:
- list of queued builds, sorted by their order number in the queue
-
-