Interface SFinishedBuild

    • Method Detail

      • setPinned

        void setPinned​(boolean pinned,
                       @Nullable
                       User user,
                       @Nullable
                       java.lang.String comment)
        Sets pin status for this build. Pinned builds will not be cleaned by the server cleanup process.
        Parameters:
        pinned - whether to pin build or not.
        user - user who pins/unpins build
        comment - comment
      • getPinComment

        @Nullable
        Comment getPinComment()
        Returns the pin/unpin comment
        Returns:
        the pin/unpin comment or null if the build has never been pinned/unpinned
      • setLabel

        void setLabel​(java.lang.String labelValue,
                      java.util.List<VcsRootInstance> rootsToLabel)
               throws VcsException
        Sets a label on files in VCS repository used by this build in the specified VCS roots
        Parameters:
        labelValue - label to set
        rootsToLabel - VCS roots to label
        Throws:
        VcsException - if labeling failed
      • getFinishDate

        @NotNull
        java.util.Date getFinishDate()
        Returns finish timestamp for the build.
        Specified by:
        getFinishDate in interface Build
        Returns:
        Date/time when the build has been finished.
      • getFinishOnAgentDate

        @NotNull
        java.util.Date getFinishOnAgentDate()
        Returns timestamp when the build finished on agent (server time).
        Specified by:
        getFinishOnAgentDate in interface SBuild
        Returns:
        see above