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

Git LFS failing clone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 2.121.2
      Git client plugin 2.7.3
      Git plugin 3.9.1

      git clone fails when there are LFS files although the clone is working on repos without LFS file. 
      The clone is working fine when using command line manually. I am unable to reproduce the issue outside of Jenkins.

       

      [EnvInject] - Loading node environment variables.
      [EnvInject] - Loading node environment variables.
      Building in workspace C:\Program Files (x86)\Jenkins\sharedspace 
      > git.exe rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository 
      > git.exe config remote.origin.url git@github.xxxxxxxxxxxxxx.com:projects/FW_Toolchain.git # timeout=10
      Fetching upstream changes from git@github.xxxxxxxxxxxxxx.com:projects/FW_Toolchain.git 
      > git.exe --version # timeout=10
      using GIT_SSH to set credentials ssh key for github 
      > git.exe fetch --tags --progress git@github.xxxxxxxxxxxxxx.com:projects/FW_Toolchain.git +refs/heads/*:refs/remotes/origin/* 
      > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 
      > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
      Checking out Revision 1bdf338d926888805c171ed19fc3088bc110b6cb (refs/remotes/origin/master) 
      > git.exe config core.sparsecheckout # timeout=10 
      > git.exe checkout -f 1bdf338d926888805c171ed19fc3088bc110b6cb
      FATAL: Could not checkout 1bdf338d926888805c171ed19fc3088bc110b6cb
      hudson.plugins.git.GitException: Command "git.exe checkout -f 1bdf338d926888805c171ed19fc3088bc110b6cb" returned status code 128:
      stdout: 
      stderr: warning: unable to rmdir 'src/ImagerAlgos/externals': Directory not empty
      Downloading eclipse-cpp-mars-2-win32-x86_64/Packages/.cache/Keil.Kinetis_K20_DFP.1.3.0.pack (127 MB)
      Error downloading object: eclipse-cpp-mars-2-win32-x86_64/Packages/.cache/Keil.Kinetis_K20_DFP.1.3.0.pack (d283580): 
      Smudge error: 
      Error downloading eclipse-cpp-mars-2-win32-x86_64/Packages/.cache/Keil.Kinetis_K20_DFP.1.3.0.pack (d2835802804ebf0401a41c2676eb7c119cbf8af7550c7fc2f291ea317bfc7dee): 
      batch request: git@github.xxxxxxxxxxxxxx.com: Permission denied (publickey).: exit status 255
      Errors logged to C:\Program Files (x86)\Jenkins\sharedspace\.git\lfs\logs\20180807T084736.9187151.log
      Use `git lfs logs last` to view the log.
      error: external filter 'git-lfs filter-process' failed
      fatal: eclipse-cpp-mars-2-win32-x86_64/Packages/.cache/Keil.Kinetis_K20_DFP.1.3.0.pack: smudge filter lfs failed
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016) 
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$800(CliGitAPIImpl.java:72)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2315)
      Caused: hudson.plugins.git.GitException: Could not checkout 1bdf338d926888805c171ed19fc3088bc110b6cb
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2339)
       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1236)
       at hudson.scm.SCM.checkout(SCM.java:504)
       at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
       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:1798)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)Finished: FAILURE
      

            Unassigned Unassigned
            atsju2 julien staub
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: