Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24507

Publisher hudson.plugins.ircbot.IrcPublisher aborts due to exception when reporting on tests is enabled

    XMLWordPrintable

Details

    Description

      Currently a number of our builds are being forced to fail by the IRC Notification component due to the following stacktrace:

      ERROR: Publisher hudson.plugins.ircbot.IrcPublisher aborted due to exception
      java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
      at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.getFailedTestsReport(PrintFailingTestsBuildToChatNotifier.java:68)
      at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.buildCompletionMessage(PrintFailingTestsBuildToChatNotifier.java:37)
      at hudson.plugins.im.IMPublisher.notifyChatsOnBuildEnd(IMPublisher.java:577)
      at hudson.plugins.im.IMPublisher.notifyOnBuildEnd(IMPublisher.java:304)
      at hudson.plugins.im.IMPublisher.perform(IMPublisher.java:291)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      at hudson.model.Run.execute(Run.java:1765)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

      Switching the Channel Notification Message to anything which does not mention "failed tests" will resolve the issue. It should be noted that this is only a problem if "failed tests" is selected as part of the Channel Notification Message and the build has tests which then fail.

      Attachments

        Issue Links

          Activity

            bcooksley Ben Cooksley created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-24395 [ JENKINS-24395 ]
            danielbeck Daniel Beck made changes -
            Component/s instant-messaging [ 15637 ]
            kutzi kutzi made changes -
            Component/s jabber [ 15507 ]
            kutzi kutzi made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 157491 ] JNJira + In-Review [ 195731 ]

            People

              kutzi kutzi
              bcooksley Ben Cooksley
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: