Class BuildChains
- java.lang.Object
-
- jetbrains.buildServer.serverSide.dependency.BuildChains
-
public class BuildChains extends Object
-
-
Constructor Summary
Constructors Constructor Description BuildChains(BuildChainFactory buildChainFactory, ProjectManager projectManager, BuildPromotionManager buildPromotionManager, BuildPromotionReplacement replacementLog)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BuildChain>
findBuildChains(BuildPromotion promotion)
Finds all build chains where the specified promotion participates.List<BuildChain>
findBuildTypeChains(SBuildType buildType, int maxFinishedBuildsToLoad, Filter<BuildPromotion> filter)
List<BuildChain>
findBuildTypesChains(List<SBuildType> buildTypes, int maxFinishedBuildsToLoad, Filter<BuildPromotion> filter)
BuildChain
findChainById(String chainId)
Finds build chain by specified id.BuildChain
getEvolvedTo(BuildChain origChain)
Finds the most recent build chain having the same build promotions in it as the original build chain.static Collection<BuildPromotion>
getReachablePromotions(Collection<SBuildType> buildTypes, Collection<BuildPromotion> promotions)
Returns build promotions reachable from the specified build types by snapshot dependencies
-
-
-
Constructor Detail
-
BuildChains
public BuildChains(@NotNull BuildChainFactory buildChainFactory, @NotNull ProjectManager projectManager, @NotNull BuildPromotionManager buildPromotionManager, @NotNull BuildPromotionReplacement replacementLog)
-
-
Method Detail
-
findChainById
@Nullable public BuildChain findChainById(@NotNull String chainId)
Finds build chain by specified id. If exactMatch is true, method will simply return chain created from id (it takes promotions replacement into account though). If exactMatch is false, method will try to find the latest build chain which still contains build type and promotions from the specified id. There can be more than one chain like this, in this case method returns the latest one.- Parameters:
chainId
- id of the chain- Returns:
- found build chain
-
getEvolvedTo
@NotNull public BuildChain getEvolvedTo(@NotNull BuildChain origChain)
Finds the most recent build chain having the same build promotions in it as the original build chain.
-
findBuildChains
@NotNull public List<BuildChain> findBuildChains(@NotNull BuildPromotion promotion)
Finds all build chains where the specified promotion participates. This includes: - all of the chains where this promotion can be promoted - all of the chains which cannot be promoted but which contain the specified build promotion- Parameters:
promotion
-- Returns:
-
findBuildTypeChains
@NotNull public List<BuildChain> findBuildTypeChains(@NotNull SBuildType buildType, int maxFinishedBuildsToLoad, @NotNull Filter<BuildPromotion> filter)
-
findBuildTypesChains
@NotNull public List<BuildChain> findBuildTypesChains(@NotNull List<SBuildType> buildTypes, int maxFinishedBuildsToLoad, @NotNull Filter<BuildPromotion> filter)
-
getReachablePromotions
@NotNull public static Collection<BuildPromotion> getReachablePromotions(@NotNull Collection<SBuildType> buildTypes, @NotNull Collection<BuildPromotion> promotions)
Returns build promotions reachable from the specified build types by snapshot dependencies- Parameters:
buildTypes
-promotions
-- Returns:
-
-