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

Nodejs Plugin java.lang.NullPointerException

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: nodejs-plugin
    • Labels:
      None
    • Environment:
      nodejs-plugin v1.30
      Jenkins 2.164.2
      Ubuntu 16.04 with slaves on Ubuntu and Centos
    • Similar Issues:

      Description

      With the new cache setting set to the default value of `~/.npm` i get the following error during my builds:

      FATAL: null
      java.lang.NullPointerException
      	at jenkins.plugins.nodejs.NodeJSBuildWrapper.setUp(NodeJSBuildWrapper.java:166)
      	at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:157)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      	at hudson.model.Run.execute(Run.java:1816)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)

      Changing to any other of the options (workspace or executor) it works fine. 

      This is an upgrade from nodejs plugin 1.29 to 1.30

       

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                nfalco Nikolas Falco
                Reporter:
                adh88ca Andrew den Hertog
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: