Interface BatchTrigger

    • 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 queue
        triggeredBy - some information about who triggers these builds
        Returns:
        list of queued builds, sorted by their order number in the queue