Class BuildCommittersCalculator


  • public class BuildCommittersCalculator
    extends Object
    Author:
    Pavel.Sher Date: 03.11.2006
    • Constructor Detail

      • BuildCommittersCalculator

        public BuildCommittersCalculator​(@NotNull
                                         BuildsManager buildsManager,
                                         @NotNull
                                         UserModel userModel)
    • Method Detail

      • shouldCheckBFNFEventToSendUntilBuildIsCompleted

        public static boolean shouldCheckBFNFEventToSendUntilBuildIsCompleted()
        Previously user was getting a notification for each incomplete build in a incomplete build sequence only if BUILD_FINISHED_NEW_FAILURE event was watched. Now this behaviour is enabled by default: user1 has BUILD_FINISHED_NEW_FAILURE event watched user2 has no BUILD_FINISHED_NEW_FAILURE event watched build1 with user1 and user2 commits was not completed -> notification is sent to user1 and user2 build2 without commits was not completed -> notification is sent to user1 only (since 10.0 user2 also gets a notification)
        Returns:
        true if user should manually set BUILD_FINISHED_NEW_FAILURE to keep getting notification until build is completed
      • getForNotifyBuildFailureWatchers

        public Set<SUser> getForNotifyBuildFailureWatchers​(@NotNull
                                                           SRunningBuild build)
      • getForNotifyAllDuringIncompleteBuilds

        public Set<SUser> getForNotifyAllDuringIncompleteBuilds​(@NotNull
                                                                SRunningBuild build)
      • getForNotifyNewBuildProblemCommitters

        public Set<SUser> getForNotifyNewBuildProblemCommitters​(@NotNull
                                                                SRunningBuild build)
      • getForNotifyFFASWatchersAndCommittersSinceSuccessful

        public Set<SUser> getForNotifyFFASWatchersAndCommittersSinceSuccessful​(SRunningBuild build)
      • getCommittersForFirstFailedBuild

        public Set<SUser> getCommittersForFirstFailedBuild​(@NotNull
                                                           SRunningBuild build)
      • responsibleChanged

        public Set<SUser> responsibleChanged​(@NotNull
                                             SBuildType buildType)