Class BatchTriggerTaskImpl

    • 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 interface TriggerTask
        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 interface TriggerTask
        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 interface TriggerTask
        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 interface TriggerTask
        Parameters:
        collectChangesEarly - true to collect changes after adding to the queue.
      • isMoveToTheQueueTop

        public boolean isMoveToTheQueueTop()
        Specified by:
        isMoveToTheQueueTop in interface TriggerTask
        Returns:
        true if build must be moved to the top of the queue.
      • isCollectChangesEarly

        public boolean isCollectChangesEarly()
        Specified by:
        isCollectChangesEarly in interface TriggerTask
        Returns:
        true if changes must be collected after adding to the queue.
      • getAgentPoolToRunOn

        @Nullable
        public AgentPool getAgentPoolToRunOn()
        Specified by:
        getAgentPoolToRunOn in interface TriggerTask
        Returns:
        pool where to start build or null if pool is not set.
      • 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 interface TriggerTask