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

NodeJS Plugin gets NullPointerException for Cache Location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • nodejs-plugin
    • CloudBees Jenkins Enterprise 2.138.40.0.2-fixed
      NodeJs Plugin 1.3.0

      Summary:

      While executing a job, this stacktrace was thrown:

      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:1819) 
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
      at hudson.model.ResourceController.execute(ResourceController.java:97) 
      at hudson.model.Executor.run(Executor.java:429) 
      

      This caused the job to fail.

      Steps to Reproduce:

      1. Create a job that uses the nodejs plugin
      2. Make sure the nodejs plugin is on version 1.3.0
      3. Have the `default` location configured for the cache location
      4. Run the job

      Expected Behavior:

      This job should have executed correctly as configured.

      Actual Behavior:

      This job failed when trying to access the cache location as it had a null value stored

      Workaround:

      Selecting another cache location such as `in the workspace` allowed for proper execution of the job.

      Business Impact:

      This will require every job that uses the default cache location to be reconfigured with another option. And builds that get run before that change is made will fail.

            nfalco Nikolas Falco
            mmclaughlin Mitch McLaughlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: