Class BuildPromotionOrderInfo

  • Direct Known Subclasses:
    OrderedBuild

    public class BuildPromotionOrderInfo
    extends Object
    • Constructor Detail

      • BuildPromotionOrderInfo

        public BuildPromotionOrderInfo​(@Nullable
                                       Long buildId,
                                       Long modificationId,
                                       Long chainModificationId,
                                       long startTimestamp,
                                       boolean incompleteBuild)
      • BuildPromotionOrderInfo

        public BuildPromotionOrderInfo​(@NotNull
                                       BuildPromotionEx promotion)
    • Method Detail

      • getBuildId

        public long getBuildId()
      • getModificationId

        @Nullable
        public Long getModificationId()
      • getChainModificationId

        @Nullable
        public Long getChainModificationId()
      • getStartTimestamp

        public long getStartTimestamp()
      • isIncomplete

        public boolean isIncomplete()
      • compareTo

        public int compareTo​(@NotNull
                             BuildPromotionOrderInfo anotherBuild)
        Comparator works that oldest builds go first, newest added to the end. Each build (with VCS roots) has a modification id - a maximum id of modifications related to the build configuration in the moment when the build starts. Recent builds have mod id greater than old ones (if new changes were detected in configuration). When 2 builds have same mod id, more recent build has a greater build id.
      • compareStartTime

        public int compareStartTime​(@NotNull
                                    BuildPromotionOrderInfo anotherBuild)
        This method compares start time and build id of this ordered build and build passed as argument. Returns -1 if this build started before (older than) anotherBuild.
        Parameters:
        anotherBuild -
        Returns: