Class SecuredFinishedBuildImpl

    • Constructor Detail

      • SecuredFinishedBuildImpl

        public SecuredFinishedBuildImpl​(long buildId,
                                        long buildPromotionId,
                                        @NotNull
                                        String buildTypeId,
                                        String agentName,
                                        int agentTypeId,
                                        @NotNull
                                        Date buildStartTimeServer,
                                        Date buildStartTimeAgent,
                                        @NotNull
                                        Date buildFinishTimeServer,
                                        @NotNull
                                        Status buildStatus,
                                        String finalStatusText,
                                        String buildNumber,
                                        boolean pin,
                                        boolean personal,
                                        CanceledInfo canceledInfo,
                                        String requestor,
                                        String buildDescription,
                                        @Nullable
                                        BuildPromotionEx buildPromotion,
                                        @NotNull
                                        BuildContext context)
    • Method Detail

      • setPinned

        public void setPinned​(boolean pinned,
                              User user,
                              String comment)
        Description copied from interface: SFinishedBuild
        Sets pin status for this build. Pinned builds will not be cleaned by the server cleanup process.
        Specified by:
        setPinned in interface SFinishedBuild
        Overrides:
        setPinned in class FinishedBuildImpl
        Parameters:
        pinned - whether to pin build or not.
        user - user who pins/unpins build
        comment - comment
      • setBuildComment

        public void setBuildComment​(@Nullable
                                    User user,
                                    @Nullable
                                    String comment)
        Description copied from interface: SBuild
        Sets the comment for the build
        Specified by:
        setBuildComment in interface SBuild
        Overrides:
        setBuildComment in class BaseBuild
        Parameters:
        user - user who sets the comment
        comment - text of the comment
      • setTags

        public void setTags​(List<String> tags)
        Description copied from interface: SBuild
        Sets public tags for this build
        Specified by:
        setTags in interface SBuild
        Overrides:
        setTags in class BaseBuild
        Parameters:
        tags - tags to set
      • setTags

        public void setTags​(User user,
                            List<String> tags)
        Description copied from interface: SBuild
        Sets public tags for this build
        Specified by:
        setTags in interface SBuild
        Overrides:
        setTags in class BaseBuild
        Parameters:
        user - user who set tags, this user is not treated as tag owner - the user from security context, doesn't correspond to tags owner
        tags - tag labels to set
      • addUserBuildProblem

        public BuildProblemData addUserBuildProblem​(@NotNull
                                                    SUser user,
                                                    @NotNull
                                                    String problemDescription)
        Description copied from interface: SBuild
        Adds user provided build problem to the build. Currently build problem causes build failure. Adding user provided problem always overrides previously added one
        Specified by:
        addUserBuildProblem in interface SBuild
        Overrides:
        addUserBuildProblem in class BaseBuild
        Parameters:
        user - user that will be used in audit
        Returns:
        added build problem
      • muteBuildProblems

        public void muteBuildProblems​(@NotNull
                                      SUser user,
                                      boolean muteIfTrue,
                                      @NotNull
                                      String comment)
        Description copied from interface: SBuild
        Makes all existing build problems enabled or disabled
        Specified by:
        muteBuildProblems in interface SBuild
        Overrides:
        muteBuildProblems in class BaseBuild
        Parameters:
        user - user that will be used in audit
        muteIfTrue - pass true to make build successful, false to make existing problems visible again
        comment - comment for audit
      • deleteBuildProblem

        public void deleteBuildProblem​(@NotNull
                                       SUser user,
                                       @NotNull
                                       String identity,
                                       @Nullable
                                       String comment)
        Description copied from interface: BuildEx
        Deletes build problem Deleting build problem may change build status to SUCCESS
        Specified by:
        deleteBuildProblem in interface BuildEx
        Overrides:
        deleteBuildProblem in class BaseBuild
        Parameters:
        user - user that will be used in audit
        identity - identiry of build problem to be removed
        comment - comment for audit