Class BuildChains


  • public class BuildChains
    extends Object
    • 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: