Class BuildChainChangesCalculator


  • public class BuildChainChangesCalculator
    extends Object
    • Field Detail

      • DEFAULT_BRANCH_BUILDS_REACHABLE_FROM_TOP_PROP

        public static final String DEFAULT_BRANCH_BUILDS_REACHABLE_FROM_TOP_PROP
        See Also:
        Constant Field Values
    • Method Detail

      • addBuildChainModifications

        public void addBuildChainModifications​(@NotNull
                                               BuildPromotion buildPromotion,
                                               @NotNull
                                               List<ChangeDescriptor> accumulator,
                                               @NotNull
                                               ChangesCalculationOptionsEx options)
        Collect change descriptors between two build chains. Younger chain is set by promotion, elder is set by provided selection policy. Returned list contains:
        • Changes from all builds of younger chain
        • All changes that were included in builds of configurations from elder chain until younger chain
        • Changes for DEPTH_THRESHOLD last builds for those configurations, that only are only in younger chain
        Parameters:
        buildPromotion - root of younger chain
        accumulator - accumulates changes
        options - changes calculation options