[JIRA] (JENKINS-57846) NodeJS Plugin gets NullPointerException for Cache Location

3 views
Skip to first unread message

mmclaughlin@cloudbees.com (JIRA)

unread,
Jun 4, 2019, 12:53:02 PM6/4/19
to jenkinsc...@googlegroups.com
Mitch McLaughlin created an issue
 
Jenkins / Bug JENKINS-57846
NodeJS Plugin gets NullPointerException for Cache Location
Issue Type: Bug Bug
Assignee: Nikolas Falco
Components: nodejs-plugin
Created: 2019-06-04 16:52
Environment: CloudBees Jenkins Enterprise 2.138.40.0.2-fixed
NodeJs Plugin 1.3.0
Labels: nodejs
Priority: Major Major
Reporter: Mitch McLaughlin

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

nfalco79@hotmail.com (JIRA)

unread,
Jun 4, 2019, 2:49:03 PM6/4/19
to jenkinsc...@googlegroups.com
Nikolas Falco closed an issue as Duplicate
Change By: Nikolas Falco
Status: Open Closed
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages