Interface BuildAgentsComparatorProvider

  • All Known Implementing Classes:
    DefaultAgentsComparatorProvider

    public interface BuildAgentsComparatorProvider
    Provides comparators, which could be used for prioritizing agents for given build during build distribution proccess
    Since:
    2020.1
    • Method Detail

      • getConnectedAgentsComparatorForQueuedBuild

        @NotNull
        Comparator<SBuildAgent> getConnectedAgentsComparatorForQueuedBuild​(@NotNull
                                                                           QueuedBuildInfo queuedBuildInfo)
        Parameters:
        queuedBuildInfo - information about build for proper agent selection
        Returns:
        comparator, which could be used for connected agents
        Since:
        2020.1
      • getVirtualAgentsComparatorForQueuedBuild

        @NotNull
        Comparator<VirtualAgent> getVirtualAgentsComparatorForQueuedBuild​(@NotNull
                                                                          QueuedBuildInfo queuedBuildInfo)
        Used in TeamCity Cloud
        Parameters:
        queuedBuildInfo - information about build for proper agent selection
        Returns:
        comparator, which could be used for virtual agents, which are not started yet
        Since:
        2020.1