Class DummyBuild

    • Method Detail

      • getQueuedDate

        @NotNull
        public Date getQueuedDate()
        Description copied from interface: SBuild
        Returns the date when the build was added to queue.
        Specified by:
        getQueuedDate in interface SBuild
        Overrides:
        getQueuedDate in class BaseBuild
        Returns:
        queued time.
      • getStartDate

        @NotNull
        public Date getStartDate()
        Description copied from interface: Build
        Returns timestamp when the build start command has been sent to an agent (server-time) or remove from queue time if start command has not been sent
        Specified by:
        getStartDate in interface Build
        Overrides:
        getStartDate in class BaseBuild
        Returns:
        see above
      • getServerStartDate

        @NotNull
        public Date getServerStartDate()
        Description copied from interface: SBuild
        Returns the timestamp when the build was removed from the queue.
        Specified by:
        getServerStartDate in interface SBuild
        Overrides:
        getServerStartDate in class BaseBuild
        Returns:
        the timestamp when the build was removed from the queue.
      • getCachedShortStatistics

        @Nullable
        public ShortStatistics getCachedShortStatistics​(boolean calculateIfAbsent)
        Description copied from interface: BuildEx
        Return cached short statistics for this build.
        Specified by:
        getCachedShortStatistics in interface BuildEx
        Parameters:
        calculateIfAbsent - if true, then statistics is calculated if it is not cached yet, if false and there is no statistics in cache, then null is returned
        Returns:
        see above
      • getBuildDescription

        public String getBuildDescription()
        Description copied from interface: SBuild
        Returns build description set to this build explicitly or null.
        Specified by:
        getBuildDescription in interface SBuild
        Returns:
        see above
      • getAgentName

        public String getAgentName()
        Description copied from interface: Build
        Returns agent name where build is running or happened to run if finished.
        Specified by:
        getAgentName in interface Build
        Returns:
        Agent name where build has been started on
      • getStatusDescriptor

        public StatusDescriptor getStatusDescriptor()
        Description copied from interface: Build
        Returns status descriptor of the build
        Specified by:
        getStatusDescriptor in interface Build
        Returns:
        Descriptor of the current status of the build
      • getTestMessages

        public List<TestInfo> getTestMessages​(int startFromIdx,
                                              int maxTestsToLoad)
        Description copied from interface: Build
        Retrieves information about tests failed in the build. Note that for running build currently executing test will be added to the list too.
        Specified by:
        getTestMessages in interface Build
        Overrides:
        getTestMessages in class BaseBuild
        Parameters:
        startFromIdx - index/order number of the first test to load (zero based)
        maxTestsToLoad - indicates how many tests to load, -1 to load all
        Returns:
        list of plain messages
      • isCompositeBuild

        public boolean isCompositeBuild()
        Description copied from interface: SBuild
        Returns true if this build is a composite build.
        Specified by:
        isCompositeBuild in interface SBuild
        Returns:
        see above
      • getProjectId

        public String getProjectId()
        Description copied from interface: Build
        Returns internal id of the project this build belongs to. Same as getBuildType().getProjectId().
        Specified by:
        getProjectId in interface Build
        Returns:
        internal id of the project this build belongs to. Same as getBuildType().getProjectId().
      • getProjectExternalId

        public String getProjectExternalId()
        Description copied from interface: Build
        Returns external id of the project this build belongs to. Same as getBuildType().getProjectId().
        Specified by:
        getProjectExternalId in interface Build
        Returns:
        external id of the project this build belongs to. Same as getBuildType().getProjectId().
      • isFinished

        public boolean isFinished()
        Specified by:
        isFinished in interface Build
        Returns:
        true if the build was finished and was saved to the history
      • getBuildNumber

        @NotNull
        public String getBuildNumber()
        Description copied from interface: Build
        Returns build number in the user defined format (unresolved parameters in build number will be replaced with '???').
        Specified by:
        getBuildNumber in interface Build
        Returns:
        presentable build number
      • getFinishDate

        public Date getFinishDate()
        Description copied from interface: Build
        Returns finish timestamp for the build (server time) or null if it hasn't been finished yet.
        Specified by:
        getFinishDate in interface Build
        Returns:
        Date/time when the build has been finished, null if still running.
      • getFinishOnAgentDate

        @Nullable
        public Date getFinishOnAgentDate()
        Description copied from interface: SBuild
        Returns timestamp when the build finished on agent (server time) or null if it is still running on agent.
        Specified by:
        getFinishOnAgentDate in interface SBuild
        Overrides:
        getFinishOnAgentDate in class BaseBuild
        Returns:
        see above
      • getCanceledInfo

        public CanceledInfo getCanceledInfo()
        Description copied from interface: Build
        Returns info related to interrupted build. If build is finished, not interrupted, the value is null.
        Specified by:
        getCanceledInfo in interface Build
        Returns:
        info about canceled reason and canceler if build was actually interrupted, null otherwise.
      • getRawBuildNumber

        public String getRawBuildNumber()
        Description copied from interface: SBuild
        Returns raw build number (i.e. build number with unresolved parameters if they exist) in contradistinction to Build.getBuildNumber() method which will return build number with all unresolved parameters replaced with ???.
        Specified by:
        getRawBuildNumber in interface SBuild
        Specified by:
        getRawBuildNumber in class BaseBuild
        Returns:
        raw build number which can contain unresolved parameters
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object