Interface SFinishedBuild

    • Method Detail

      • setPinned

        void setPinned​(boolean pinned,
                       @Nullable
                       User user,
                       @Nullable
                       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​(String labelValue,
                      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
      • setLabel

        void setLabel​(String labelValue,
                      @Nullable
                      String message,
                      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
        comment - label comment
        rootsToLabel - VCS roots to label
        Throws:
        VcsException
      • getFinishDate

        @NotNull
        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
        Date getFinishOnAgentDate()
        Returns timestamp when the build finished on agent (server time).
        Specified by:
        getFinishOnAgentDate in interface SBuild
        Returns:
        see above