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

      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.

          [JENKINS-24507] Publisher hudson.plugins.ircbot.IrcPublisher aborts due to exception when reporting on tests is enabled

          Perhaps related to JENKINS-24413 ?

          Nicholas Brown added a comment - Perhaps related to JENKINS-24413 ?

          Ben Cooksley added a comment -

          Yes, the traces look identical.

          Ben Cooksley added a comment - Yes, the traces look identical.

          Daniel Beck added a comment -

          API change in 1.577. Linked issue contains details. There's already a fix committed to Git, but unreleased.

          https://github.com/jenkinsci/instant-messaging-plugin/commit/35234f309539233497387266b09775ba4c04f389

          Daniel Beck added a comment - API change in 1.577. Linked issue contains details. There's already a fix committed to Git, but unreleased. https://github.com/jenkinsci/instant-messaging-plugin/commit/35234f309539233497387266b09775ba4c04f389

          Daniel Beck added a comment -

          Not sure which plugin (or both) are affected, adding IM component.

          Daniel Beck added a comment - Not sure which plugin (or both) are affected, adding IM component.

          kutzi added a comment -

          Just released a new version of the instant-messaging plugin with the fix.
          Thanks for bringing this issue to attention.

          kutzi added a comment - Just released a new version of the instant-messaging plugin with the fix. Thanks for bringing this issue to attention.

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

              Created:
              Updated:
              Resolved: