Interface BuildEx

    • Method Detail

      • getBuildProblems

        @NotNull
        List<BuildProblem> getBuildProblems()
        Returns all build problems for this promotion with extended information about muting This method can perform rather slow as it reloads build problems from database and fills mute info from audit (reads database as well) If you don't need mute info try using SBuild.getFailureReasons()
        Returns:
        see above
        Since:
        7.1
      • deleteBuildProblem

        void deleteBuildProblem​(@NotNull
                                SUser user,
                                @NotNull
                                String identity,
                                @Nullable
                                String comment)
        Deletes build problem Deleting build problem may change build status to SUCCESS
        Parameters:
        user - user that will be used in audit
        identity - identiry of build problem to be removed
        comment - comment for audit
        Since:
        7.1
      • muteBuildProblems

        void muteBuildProblems​(boolean muteIfTrue)
        Makes all existing build problems enabled or disabled
        Parameters:
        muteIfTrue - pass true to make build successful, false to make existing problems visible again
        Since:
        8.0
      • buildProblemsChanged

        void buildProblemsChanged​(@NotNull
                                  List<BuildProblemData> before,
                                  @NotNull
                                  List<BuildProblemData> after)
        Called when build problems are changed (added, deleted or muted)
        Parameters:
        before - problems before change
        after - problems after change
      • getCachedShortStatistics

        @Nullable
        ShortStatistics getCachedShortStatistics​(boolean calculateIfAbsent)
        Return cached short statistics for this build.
        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
        Since:
        2017.2.1
      • isTimedOut

        boolean isTimedOut()
        Returns:
        true if this build finished by timeout
        Since:
        2020.2
      • getDurationOnAgent

        long getDurationOnAgent()
        Returns:
        build duration in seconds on agent or 0 if the build wasn't running on agent
        Since:
        2020.2
      • getDetachFromAgentReceivedTimestamp

        @Nullable
        Long getDetachFromAgentReceivedTimestamp()
        Returns:
        timestamp when this build was attempted to detach from agent
        Since:
        2020.2.1
      • getBuildLog

        @NotNull
        BuildLogEx getBuildLog()
        Description copied from interface: SBuild
        Returns build log.
        Specified by:
        getBuildLog in interface SBuild
        Returns:
        build log.