[JIRA] (JENKINS-61197) Running a job with a custom workspace set to eg. 'F:\' causes NullPointerException

34 views
Skip to first unread message

frank@schlottmann-goedde.de (JIRA)

unread,
Feb 24, 2020, 7:06:03 AM2/24/20
to jenkinsc...@googlegroups.com
Frank Schlottmann-Gödde created an issue
 
Jenkins / Bug JENKINS-61197
Running a job with a custom workspace set to eg. 'F:\' causes NullPointerException
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2020-02-24 12:05
Environment: Jenkins ver 2.221, Windows SBS 2012
Priority: Major Major
Reporter: Frank Schlottmann-Gödde

After upgrading fom ver 2.211 to ver 2.221 jobs with a drive as custom workspace throw 
a NullPointerException immediately:

00:00:00.002 Running as SYSTEM*00:00:00.002* [EnvInject] - Loading node environment variables.00:00:00.003 Baue auf Master in Arbeitsbereich F:*00:00:00.004* FATAL: null*00:00:00.005* java.lang.NullPointerException*00:00:00.005* at hudson.FilePath.sibling(FilePath.java:1327)00:00:00.005 at hudson.slaves.WorkspaceList.tempDir(WorkspaceList.java:306)00:00:00.005 at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:868)00:00:00.005 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:852)00:00:00.005 at hudson.scm.SCM.checkout(SCM.java:505)00:00:00.005 at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)00:00:00.005 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)00:00:00.005 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)00:00:00.005 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)00:00:00.005 at hudson.model.Run.execute(Run.java:1856)00:00:00.005 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)00:00:00.005 at hudson.model.ResourceController.execute(ResourceController.java:97)00:00:00.005 at hudson.model.Executor.run(Executor.java:428)00:00:00.005 ERROR: Build step failed with exception

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

frank@schlottmann-goedde.de (JIRA)

unread,
Feb 24, 2020, 7:07:18 AM2/24/20
to jenkinsc...@googlegroups.com
Frank Schlottmann-Gödde updated an issue
After upgrading fom ver 2.211 to ver 2.221 jobs with a drive as custom workspace throw 
a NullPointerException immediately:


*00:00:00.002*
Running as SYSTEM *00:00:00.002*
[EnvInject] - Loading node environment variables. *00:00:00.003*
Baue auf Master in Arbeitsbereich F:\ *00:00:00.004*
FATAL: null *00:00:00.005*
java.lang.NullPointerException *00:00:00.005*
  at hudson.FilePath.sibling(FilePath.java:1327) *00:00:00.005*
  at hudson.slaves.WorkspaceList.tempDir(WorkspaceList.java:306) *00:00:00.005*
  at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:868) *00:00:00.005*
  at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:852) *00:00:00.005*
  at hudson.scm.SCM.checkout(SCM.java:505) *00:00:00.005*
  at hudson.model.AbstractProject.checkout(AbstractProject.java:1206) *00:00:00.005*
  at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) *00:00:00.005*
  at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) *00:00:00.005*
  at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) *00:00:00.005*
  at hudson.model.Run.execute(Run.java:1856) *00:00:00.005*
  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) *00:00:00.005*
  at hudson.model.ResourceController.execute(ResourceController.java:97) *00:00:00.005*
  at hudson.model.Executor.run(Executor.java:428) *00:00:00.005*
ERROR: Build step failed with exception

frank@schlottmann-goedde.de (JIRA)

unread,
Feb 24, 2020, 7:08:06 AM2/24/20
to jenkinsc...@googlegroups.com
Frank Schlottmann-Gödde updated an issue
After upgrading fom ver 2.211 to ver 2.221 jobs with a drive as custom workspace throw 
a NullPointerException immediately:


Running as SYSTEM

[EnvInject] - Loading node environment variables.
Baue auf Master in Arbeitsbereich F:\
FATAL: null
java.lang.NullPointerException
at hudson.FilePath.sibling(FilePath.java:1327)
at hudson.slaves.WorkspaceList.tempDir(WorkspaceList.java:306)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:868)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:852)
at hudson.scm.SCM.checkout(SCM.java:505)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1856)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)

ERROR: Build step failed with exception

frank@schlottmann-goedde.de (JIRA)

unread,
Feb 24, 2020, 7:08:06 AM2/24/20
to jenkinsc...@googlegroups.com
Frank Schlottmann-Gödde updated an issue
After upgrading fom ver 2.211 to ver 2.221 jobs with a drive as custom workspace throw 
a NullPointerException immediately:


*00:00:00.002*
Running as SYSTEM *00:00:00.002*
[EnvInject] - Loading node environment variables. *00:00:00.003*
Baue auf Master in Arbeitsbereich F:\ *00:00:00.004*
FATAL: null *00:00:00.005*
java.lang.NullPointerException *00:00:00.005*
  at hudson.FilePath.sibling(FilePath.java:1327) *00:00:00.005*
  at hudson.slaves.WorkspaceList.tempDir(WorkspaceList.java:306) *00:00:00.005*
  at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:868) *00:00:00.005*
  at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:852) *00:00:00.005*
  at hudson.scm.SCM.checkout(SCM.java:505) *00:00:00.005*
  at hudson.model.AbstractProject.checkout(AbstractProject.java:1206) *00:00:00.005*
  at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) *00:00:00.005*
  at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) *00:00:00.005*
  at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) *00:00:00.005*
  at hudson.model.Run.execute(Run.java:1856) *00:00:00.005*
  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) *00:00:00.005*
  at hudson.model.ResourceController.execute(ResourceController.java:97) *00:00:00.005*
  at hudson.model.Executor.run(Executor.java:428) *00:00:00.005*
ERROR: Build step failed with exception

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 24, 2020, 9:03:02 AM2/24/20
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 24, 2020, 10:49:11 AM2/24/20
to jenkinsc...@googlegroups.com

frank@schlottmann-goedde.de (JIRA)

unread,
Feb 25, 2020, 6:33:06 AM2/25/20
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 25, 2020, 6:37:03 AM2/25/20
to jenkinsc...@googlegroups.com
Oleg Nenashev started work on Bug JENKINS-61197
 
Change By: Oleg Nenashev
Status: Open In Progress

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 25, 2020, 6:37:03 AM2/25/20
to jenkinsc...@googlegroups.com

Looks very plausible. AFAICT there is a bug in the code I may be able to fix quickly

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 25, 2020, 6:37:03 AM2/25/20
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Feb 25, 2020, 8:22:02 AM2/25/20
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Feb 25, 2020, 8:28:03 AM2/25/20
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
After upgrading fom ver 2.211 to ver 2.221 jobs with a drive as custom workspace throw 
a NullPointerException immediately:

{code:none}
Running as SYSTEM

[EnvInject] - Loading node environment variables.
Baue auf Master in Arbeitsbereich F:\
FATAL: null
java.lang.NullPointerException
at hudson.FilePath.sibling(FilePath.java:1327)
at hudson.slaves.WorkspaceList.tempDir(WorkspaceList.java:306)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:868)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:852)
at hudson.scm.SCM.checkout(SCM.java:505)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1856)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)
ERROR: Build step failed with exception

{code}

jglick@cloudbees.com (JIRA)

unread,
Feb 25, 2020, 8:29:02 AM2/25/20
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Feb 25, 2020, 8:34:02 AM2/25/20
to jenkinsc...@googlegroups.com
Jesse Glick commented on Bug JENKINS-61197
 
Re: Running a job with a custom workspace set to eg. 'F:\' causes NullPointerException

FilePath.sibling is broken for root directories. Should probably just read something like

FilePath parent = getParent();
return parent != null ? parent.child(rel) : child(rel);

Note that this setup probably caused errors in some circumstances even before JENKINS-60634, for example if you tried to use the Credentials Binding plugin with a secret file, but the recent change would have made it happen consistently.

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 25, 2020, 8:48:03 AM2/25/20
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 25, 2020, 8:48:03 AM2/25/20
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Feb 25, 2020, 9:29:05 AM2/25/20
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Feb 25, 2020, 9:29:05 AM2/25/20
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 26, 2020, 8:39:06 AM2/26/20
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Mar 2, 2020, 4:27:03 PM3/2/20
to jenkinsc...@googlegroups.com
Change By: Jesse Glick
Status: In Review Resolved
Resolution: Fixed
Released As: 2.223
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Mar 2, 2020, 4:27:03 PM3/2/20
to jenkinsc...@googlegroups.com

ogondza@gmail.com (JIRA)

unread,
Mar 11, 2020, 6:29:03 AM3/11/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages