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

Git2 shallow clone doesn't work with git command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • windows

      Set project to use git command not jGit
      Try to configure a project to use shallow clone,
      project tryies to shallow clone but recieves the following error:

      Cloning the remote Git repository
      Using shallow clone
      FATAL: null
      java.lang.NullPointerException
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl$Invocation.<init>(RemoteGitImpl.java:71)
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:130)
      at $Proxy57.shallow(Unknown Source)
      at hudson.plugins.git.extensions.impl.CloneOption.decorateCloneCommand(CloneOption.java:42)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:796)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:831)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1408)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
      at hudson.model.Run.execute(Run.java:1603)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)

            ndeloof Nicolas De Loof
            dcorbett David Corbett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: