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

NullPointerException in Postbuild action for matrix child

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • postbuildscript-plugin
    • None
    • Ubuntu 10.04, Jenkins 1.500, Jenkins Post-Build Script Plug-in 0.10

      PostBuildScript gives NullPointerException for matrix child jobs, Works ok for parent job.

      From parent log:

      Triggering value1
      Triggering value2
      value1 completed with result SUCCESS
      value2 completed with result SUCCESS
      [PostBuildScript] - Execution post build scripts.
      [workspace] $ /bin/sh -xe /tmp/hudson4750159053349493502.sh
      + echo Post-build action, build step, Execute shell
      Post-build action, build step, Execute shell
      + echo PREPARED_ENV_VAR =
      PREPARED_ENV_VAR =
      + echo GENERATED_ENV_VAR_FROM_SCRIPT =
      GENERATED_ENV_VAR_FROM_SCRIPT =
      + echo INJECTED_ENV_VAR =
      INJECTED_ENV_VAR =
      Finished: SUCCESS

      From child log:
      ...
      [EnvInject] - Script executed successfully.
      [value1] $ /bin/sh -xe /tmp/hudson4061121161659393893.sh
      + echo Build, Execute shell
      Build, Execute shell
      + echo PREPARED_ENV_VAR =
      PREPARED_ENV_VAR =
      + echo GENERATED_ENV_VAR_FROM_SCRIPT = yes
      GENERATED_ENV_VAR_FROM_SCRIPT = yes
      + echo INJECTED_ENV_VAR =
      INJECTED_ENV_VAR =
      Finished: SUCCESS

      From system log_
      2013-feb-12 11:02:32 hudson.model.Run execute
      INFO: magjac-matrix-test #4 main build action completed: SUCCESS

      2013-feb-12 11:02:31 hudson.model.Run execute
      INFO: magjac-matrix-test » value1 #4 main build action completed: SUCCESS

      2013-feb-12 11:02:31 hudson.model.Run execute
      INFO: magjac-matrix-test » value2 #4 main build action completed: SUCCESS

      2013-feb-12 11:02:31 hudson.model.listeners.RunListener report
      VARNING: RunListener failed
      java.lang.NullPointerException
      at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher(PostBuildScriptListener.java:51)
      at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:36)
      at hudson.model.listeners.RunListener.fireStarted(RunListener.java:195)
      at hudson.model.Run.execute(Run.java:1552)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)

      2013-feb-12 11:02:31 hudson.model.listeners.RunListener report
      VARNING: RunListener failed
      java.lang.NullPointerException
      at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher(PostBuildScriptListener.java:51)
      at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:36)
      at hudson.model.listeners.RunListener.fireStarted(RunListener.java:195)
      at hudson.model.Run.execute(Run.java:1552)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)

      2013-feb-12 11:00:08 hudson.model.Run execute
      INFO: magjac-trig-test #3 main build action completed: SUCCESS

            gbois Gregory Boissinot
            magjac Magnus Jacobsson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: