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

Running a job with a custom workspace set to eg. 'F:\' causes NullPointerException

    • 2.223

      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
      

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

          Frank Schlottmann-Gödde created issue -
          Frank Schlottmann-Gödde made changes -
          Description Original: 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
          New: 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-Gödde made changes -
          Description Original: 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
          New: 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
          Oleg Nenashev made changes -
          Labels New: regression

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - There is no recent changes in the codebase:  https://github.com/jenkinsci/jenkins/blame/master/core/src/main/java/hudson/FilePath.java#L1327  

          Frank Schlottmann-Gödde added a comment - It is probably this: https://github.com/jenkinsci/jenkins/commit/84f66e3c4ee32b96585c580c325288d20aef104f

          Oleg Nenashev added a comment -

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

          Oleg Nenashev added a comment - Looks very plausible. AFAICT there is a bug in the code I may be able to fix quickly
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Link New: This issue is caused by JENKINS-60634 [ JENKINS-60634 ]

            jglick Jesse Glick
            fsg Frank Schlottmann-Gödde
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: