Interface NotificationEventListener


  • public interface NotificationEventListener
    Notification processor event listener.
    • Method Detail

      • buildStarted

        void buildStarted​(@NotNull
                          SRunningBuild build)
        Called when build started and changes loaded.
        Parameters:
        build - started build.
      • buildSuccessful

        void buildSuccessful​(@NotNull
                             SRunningBuild build)
        Called when build finished successfully.
        Parameters:
        build - finished build.
      • buildSuccessfulAfterFailure

        void buildSuccessfulAfterFailure​(@NotNull
                                         SRunningBuild build)
        Called upon first successful build after a number of failed builds.
        Parameters:
        build - finished build.
      • buildFailed

        void buildFailed​(@NotNull
                         SRunningBuild build)
        Called when build finished with a failure.
        Parameters:
        build - failed build.
      • buildFailedToStart

        void buildFailedToStart​(@NotNull
                                SRunningBuild build)
        Called if build failed to start, i.e. some internal error occurred and build process did not start actually.
        Parameters:
        build - failed build
      • buildFailedAfterSuccess

        void buildFailedAfterSuccess​(@NotNull
                                     SRunningBuild build)
        Called upon first build failure after success
        Parameters:
        build - failed build
      • buildProbablyHanged

        void buildProbablyHanged​(@NotNull
                                 SRunningBuild build)
        Called when server detected probable hanging of a build
        Parameters:
        build - hung build.
      • buildFailing

        void buildFailing​(@NotNull
                          SRunningBuild build,
                          @Nullable
                          BuildMessage1 message)
        Called when build status changed to failure. This event will be sent only once.
        Parameters:
        build - failing build.
        message - is always null since 7.1
      • queuedBuildRequiresApproval

        void queuedBuildRequiresApproval​(@NotNull
                                         SQueuedBuild queuedBuild)
        Called when a build that requires approval is queued. This event will be sent only once.
        Parameters:
        queuedBuild - queued build.
      • responsibleChanged

        void responsibleChanged​(@NotNull
                                SBuildType buildType,
                                @NotNull
                                ResponsibilityEntry oldValue,
                                @NotNull
                                ResponsibilityEntry newValue,
                                boolean isUserAction)
        Called when responsibility changes.
        Parameters:
        buildType - configuration with changed responsibility.
        oldValue - old responsibility.
        newValue - new responsibility.
        isUserAction - if the action was made by user.
      • responsibleChanged

        void responsibleChanged​(@NotNull
                                SProject project,
                                @Nullable
                                TestNameResponsibilityEntry oldValue,
                                @NotNull
                                TestNameResponsibilityEntry newValue,
                                boolean isUserAction)
        Called when test responsibility is changed.
        Parameters:
        project - the project in which test responsibility has changed
        oldValue - old responsibility entry
        newValue - new responsibility entry
        isUserAction - true if responsibility status was changed manually via Web UI
        Since:
        5.0
      • responsibleChanged

        void responsibleChanged​(@NotNull
                                SProject project,
                                @NotNull
                                java.util.Collection<TestName> testNames,
                                @NotNull
                                ResponsibilityEntry entry,
                                boolean isUserAction)
        Called when responsibility for several tests changed.
        Parameters:
        project - the project
        testNames - collection of test names
        entry - new responsibility entry for each test
        isUserAction - true if responsibility status was changed manually via Web UI
        Since:
        6.0
      • responsibleChanged

        void responsibleChanged​(@NotNull
                                SProject project,
                                @NotNull
                                java.util.Collection<BuildProblemInfo> buildProblems,
                                @Nullable
                                ResponsibilityEntry entry)
        Called when responsibility for several build problems at once is changed.
        Parameters:
        project - the project
        buildProblems - build problems
        entry - the new responsibility entry
        Since:
        8.0
      • labelingFailed

        void labelingFailed​(SBuild build,
                            VcsRoot root,
                            java.lang.Throwable exception)
        Labeling process failed for the specified build and root with the specified problem.
        Parameters:
        build - build for which labeling failed.
        root - root for which labeling failed.
        exception - labeling cause.
      • testsMuted

        void testsMuted​(@NotNull
                        MuteInfo muteInfo)
        Called when a set of tests are muted (with same mute properties). All tests are in the same project.
        Parameters:
        muteInfo - mute info
        Since:
        6.5
      • testsUnmuted

        void testsUnmuted​(@NotNull
                          MuteInfo muteInfoBeforeUnmute,
                          @NotNull
                          java.util.Collection<STest> tests,
                          @Nullable
                          SUser user)
        Called when a set of tests are unmuted (with same mute properties). All tests are in the same project.
        Parameters:
        muteInfoBeforeUnmute - the mute info on the moment of unmute
        tests - the unmuted tests
        user - who performed the action (if known)
        Since:
        6.5 (updated in 7.0)
      • buildProblemsMuted

        void buildProblemsMuted​(@NotNull
                                MuteInfo muteInfo)
        Called when a set of build problems are muted (with same mute properties). All problems belong the same project.
        Parameters:
        muteInfo - mute info
        Since:
        8.0
      • buildProblemsUnmuted

        void buildProblemsUnmuted​(@NotNull
                                  MuteInfo muteInfoBeforeUnmute,
                                  @NotNull
                                  java.util.Collection<BuildProblemInfo> problems,
                                  @Nullable
                                  SUser user)
        Called when a set of build problems are unmuted (with same mute properties). All problems belong the same project.
        Parameters:
        muteInfoBeforeUnmute - the mute info on the moment of unmute
        problems - the unmuted problems
        user - who performed the action (if known)
        Since:
        8.0