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

Occasional NPE when sending rocket chat notification

XMLWordPrintable

      Sometimes the notification sender fails with a NPE, whereas the same config works most of the  time reliably.

      ERROR: Build step failed with exception
      java.lang.NullPointerException
      at jenkins.plugins.rocketchatnotifier.ActiveNotifier.completed(ActiveNotifier.java:107)
      at jenkins.plugins.rocketchatnotifier.RocketChatNotifier.perform(RocketChatNotifier.java:339)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1749)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:421)
      Build step 'RocketChat Notifications' marked build as failure
      Finished: FAILURE
      

      Additionally, there should be a setting to disable failing the build if the notification failes. This would be helpful to prevent broken builds, for non-build-related stops (like sending the notification).

       

      • CentOS 7 (Linux 3.10.0-693.17.1.el7.x86_64)
      • Jenkins 2.8.9
      • Java 1.8.0_111
      • Plugin version 1.2.0
      • RocketChat 0.62.2

            mreinhardt Martin Reinhardt
            tms Thomas Schädler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: