jetbrains.buildServer.serverSide.buildDistribution
Interface BuildPromotionInfo


public interface BuildPromotionInfo

Represents build promotion for the build distribution algorithm.

Since:
4.5

Method Summary
 java.util.Map<java.lang.String,java.lang.String> getBuildParameters()
          Returns combined map of default and custom defined build parameters.
 java.util.Collection<SBuildAgent> getCanRunOnAgents(java.util.Collection<SBuildAgent> available)
          Returns collection of agents where this build promotion can be executed.
 java.util.Collection<BuildPromotionInfo> getDirectDependencies()
          Returns direct snapshot dependencies of this build promotion
 long getId()
          Returns id of the build promotion
 java.util.Map<java.lang.String,java.lang.String> getParameters()
          Returns combined map of default and custom parameters.
 

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