Interface BuildPromotionInfo


  • public interface BuildPromotionInfo
    Represents build promotion for the build distribution algorithm.
    Since:
    4.5
    • Method Detail

      • getId

        long getId()
        Returns id of the build promotion
        Returns:
        see above
      • getDirectDependencies

        java.util.Collection<BuildPromotionInfo> getDirectDependencies()
        Returns direct snapshot dependencies of this build promotion
        Returns:
        see above
      • getParameters

        @NotNull
        java.util.Map<java.lang.String,​java.lang.String> getParameters()
        Returns combined map of default and custom parameters. Combined map contains both build and configuration parameters. Custom parameters take precedence over default parameters.

        Note that parameters returned by this method can be modified before they are passed to agent, see ParametersPreprocessor for more details.

        Returns:
        see above
        Since:
        6.5
      • getBuildParameters

        @NotNull
        java.util.Map<java.lang.String,​java.lang.String> getBuildParameters()
        Returns combined map of default and custom defined build parameters. Custom build parameters takes precedence over default parameters.

        Note that parameters returned by this method can be modified before they are passed to agent, see ParametersPreprocessor for more details.

        Returns:
        see above
      • getCanRunOnAgents

        @NotNull
        java.util.Collection<SBuildAgent> getCanRunOnAgents​(@NotNull
                                                            java.util.Collection<SBuildAgent> available)
        Returns collection of agents where this build promotion can be executed. Returned agents are compatible with this build promotion, and build promotion build configuration is allowed to be executed on these agents.
        Returns:
        see above
        Since:
        7.0
      • isAgentLessBuild

        boolean isAgentLessBuild()
        Does it build cannot be executed on any usual agent but only by some external process.
        Returns:
        true if the build cannot be executed on any usual agent; false - if the build can be executed on usual agent
        Since:
        2019.2
      • isCompositeBuild

        boolean isCompositeBuild()
        Returns:
        true if this build is composite
        Since:
        2020.2.1