Class BuildBuilder.HistoryBuildStub

    • Constructor Detail

      • HistoryBuildStub

        public HistoryBuildStub​(BuildPromotionEx buildPromotion)
    • Method Detail

      • getBuildId

        public long getBuildId()
        Specified by:
        getBuildId in interface HistoryBuild
        Returns:
        unique ID of the build
      • getCanceledInfo

        @Nullable
        public CanceledInfo getCanceledInfo()
        Specified by:
        getCanceledInfo in interface HistoryBuild
        Returns:
        build cancellation information if the build was cancelled, null otherwise
      • getShortStatistics

        public ShortStatistics getShortStatistics()
        Description copied from interface: HistoryBuild
        Returns a "short" statistics for the build (including information about failed/successful tests, compilation errors), see ShortStatistics.

        This function doesn't guarantee that the returned statistics will actuial at this time. In opposite, if another thread is changing build informaition at the same time, this function returns a bit old data but does it quickly.

        This behaviour is needed because a lot of UI pages required this statistics, often for many build for one page, so making this function providing always actual data will couse a seriouse performance problem.

        Specified by:
        getShortStatistics in interface HistoryBuild
        Returns:
        short build statistics.
      • getBuildDescription

        @Nullable
        public String getBuildDescription()
        Specified by:
        getBuildDescription in interface HistoryBuild
        Returns:
        explicit build description line, which was set explicitly to the build, if such description exists and null otherwise.
      • getAgentName

        @NotNull
        public String getAgentName()
        Specified by:
        getAgentName in interface HistoryBuild
        Returns:
        build agent name which is build is run on
      • getAgentTypeId

        public int getAgentTypeId()
        Specified by:
        getAgentTypeId in interface HistoryBuild
        Returns:
        agent type id of the associated agent
      • isPersonal

        public boolean isPersonal()
        Specified by:
        isPersonal in interface HistoryBuild
        Returns:
        true if this build is personal one, like remote run or pre-tested commit
      • getRawTriggeredBy

        public String getRawTriggeredBy()
        Specified by:
        getRawTriggeredBy in interface HistoryBuild
        Returns:
        build trigger string (triggered by VCS, user, schedule etc)
      • getQueuedDate

        @NotNull
        public Date getQueuedDate()
        Description copied from interface: HistoryBuild
        When the build was added to queue.
        Specified by:
        getQueuedDate in interface HistoryBuild
        Returns:
        build queued time.
      • getServerStartDate

        @NotNull
        public Date getServerStartDate()
        Description copied from interface: HistoryBuild
        When the build was removed from queue and started.
        Specified by:
        getServerStartDate in interface HistoryBuild
        Returns:
        build start time on the server.