Interface QueuedBuildInfo

    • Method Detail

      • getItemId

        @NotNull
        String getItemId()
        Returns unique id corresponding to this queued build info.
        Returns:
        unique id corresponding to this queued build info.
      • getBuildConfiguration

        @NotNull
        BuildConfigurationInfo getBuildConfiguration()
        Returns:
        configuration specific information related to this build. since 9.1: if build configuration does not exist, returns null object.
      • getBuildAgentId

        @Deprecated
        @Nullable
        Integer getBuildAgentId()
        Deprecated.
        Returns:
        the agent id the build is assigned to or null, if the build isn't assigned to a specific agent.
      • getAgentRestrictor

        @Nullable
        AgentRestrictor getAgentRestrictor()
        Returns:
        agent restrictor if the build is assigned to a specific set of agents, null otherwise.
        Since:
        7.0
      • getBuildPromotionInfo

        @NotNull
        BuildPromotionInfo getBuildPromotionInfo()
        Returns build promotion, associated with this queued build
      • getCompatibleAgents

        @NotNull
        Collection<SBuildAgent> getCompatibleAgents​(@NotNull
                                                    Collection<SBuildAgent> availableAgents)
        Takes collection of agents as an argument and returns those which are compatible with current queued build
        Parameters:
        availableAgents - collection of agents
        Returns:
        see above
        Since:
        2019.2