• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • git plugin 4.4.0

      Jenkins 2.164.3 with Git Plugin 3.9.3

      With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output.

      Unchecking "Lightweight checkout" solves the immediate NPE issue and the job completes.

      Started by user <redacted>java.lang.NullPointerException
       at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117)
       at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114)
       at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)
       at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)
       at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)
       at jenkins.plugins.git.GitSCMFileSystem.<init>(GitSCMFileSystem.java:114)
       at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353)
       at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)
       at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)
       at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
       at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
       at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

          [JENKINS-57587] Lightweight checkout gives NPE

          Jeff Blaine created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Description Original: Jenkins 2.164.3 with Git Plugin 3.9.3

          With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output.

          _Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.

          {{Started by user <redacted>}}{{java.lang.NullPointerException}}
          {{ at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117)}}
          {{ at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114)}}
          {{ at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)}}
          {{ at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)}}
          {{ at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)}}
          {{ at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)}}
          {{ at jenkins.plugins.git.GitSCMFileSystem.<init>(GitSCMFileSystem.java:114)}}
          {{ at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353)}}
          {{ at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)}}
          {{ at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)}}
          {{ at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)}}
          {{ at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)}}
          {{ at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)}}
          {{ at hudson.model.ResourceController.execute(ResourceController.java:97)}}
          {{ at hudson.model.Executor.run(Executor.java:429)}}
          {{Finished: FAILURE}}
          New: Jenkins 2.164.3 with Git Plugin 3.9.3

          With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output.

          _Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.

          {noformat{
          Started by user <redacted>}}{{java.lang.NullPointerException
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117)
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)
           at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)
           at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)
           at jenkins.plugins.git.GitSCMFileSystem.<init>(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
           at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          {noformat}
          Mark Waite made changes -
          Description Original: Jenkins 2.164.3 with Git Plugin 3.9.3

          With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output.

          _Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.

          {noformat{
          Started by user <redacted>}}{{java.lang.NullPointerException
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117)
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)
           at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)
           at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)
           at jenkins.plugins.git.GitSCMFileSystem.<init>(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
           at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          {noformat}
          New: Jenkins 2.164.3 with Git Plugin 3.9.3

          With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output.

          _Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.

          {noformat}
          Started by user <redacted>}}{{java.lang.NullPointerException
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117)
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)
           at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)
           at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)
           at jenkins.plugins.git.GitSCMFileSystem.<init>(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
           at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          {noformat}
          Mark Waite made changes -
          Description Original: Jenkins 2.164.3 with Git Plugin 3.9.3

          With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output.

          _Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.

          {noformat}
          Started by user <redacted>}}{{java.lang.NullPointerException
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117)
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)
           at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)
           at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)
           at jenkins.plugins.git.GitSCMFileSystem.<init>(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
           at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          {noformat}
          New: Jenkins 2.164.3 with Git Plugin 3.9.3

          With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output.

          _Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.

          {noformat}
          Started by user <redacted>java.lang.NullPointerException
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117)
           at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)
           at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)
           at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)
           at jenkins.plugins.git.GitSCMFileSystem.<init>(GitSCMFileSystem.java:114)
           at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)
           at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
           at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
           at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          {noformat}
          Mark Waite made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Mark Waite made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]
          Sven Hickstein made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Mark Waite made changes -
          Status Original: Reopened [ 4 ] New: Open [ 1 ]
          Mark Waite made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Fixed but Unreleased [ 10203 ]

            Unassigned Unassigned
            jblaine Jeff Blaine
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: