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

LFS not initialized prior to checkout, at least in multibranch pipeline


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • Jenkins 2.347
      Git plugin 4.11.2

      I have a multibranch pipeline project that uses LFS.

      LFS pull is enabled in the project configuration, and LFS objects are fetched from the server, however "git lfs install" is never called in the workspace, so LFS pointers are never replaced by the actual files.

      Searching for this problem suggests that this is a known problem that people know to work around with a pre SCM step, but in a declarative multibranch pipeline, there is no way to configure this.

      I can work around the issue myself with additional build steps

      sh 'git lfs install'
      sh 'git lfs checkout

      but obviously that is not a proper solution.

            Unassigned Unassigned
            simonrichter Simon Richter
            0 Vote for this issue
            2 Start watching this issue