Giter Site home page Giter Site logo

Comments (5)

bk2204 avatar bk2204 commented on June 2, 2024 1

I'm sorry, I don't use Jenkins and don't know how it can be configured. Just as a note, I think, from some quick Googling, that there is a Jenkins task to check out LFS objects which invokes something like git lfs pull, which you might be able to use. git lfs pull, assuming it has the right credentials, should be sufficient to get the pointer files replaced by large files.

from git-lfs.

bk2204 avatar bk2204 commented on June 2, 2024

Hey,

I don't think this is due to the smudge option; that appears normal. Can you provide a printout of the environment on that machine while Jenkins is running that task? The reason I ask is that if it contains GIT_LFS_SKIP_SMUDGE=1, then that will cause the pointer files to remain in the working tree and cause this problem.

from git-lfs.

Natsuspace avatar Natsuspace commented on June 2, 2024

Hey,

I don't think this is due to the smudge option; that appears normal. Can you provide a printout of the environment on that machine while Jenkins is running that task? The reason I ask is that if it contains GIT_LFS_SKIP_SMUDGE=1, then that will cause the pointer files to remain in the working tree and cause this problem.

Yah, it does have this, How do I disable this?

            Name                                      Value   

17:40:09 GIT_LFS_SKIP_SMUDGE 1

from git-lfs.

KalleOlaviNiemitalo avatar KalleOlaviNiemitalo commented on June 2, 2024

The Git plugin for Jenkins defines the "Git LFS pull after checkout" behaviour that you can add to a branch source in a pipeline project. I don't remember whether it covers submodules too.

Alternatively, you can use the sh or bat or pwsh pipeline step to run the git lfs pull command, perhaps combined with git submodule foreach. However, Jenkins does not automatically pass the Git repository access credentials to such commands. So if your repository is private, then you may have to place the command within a withCredentials step and configure the credential in Jenkins so that the pipeline is authorised to use it.

from git-lfs.

Natsuspace avatar Natsuspace commented on June 2, 2024

Hey,

I don't think this is due to the smudge option; that appears normal. Can you provide a printout of the environment on that machine while Jenkins is running that task? The reason I ask is that if it contains GIT_LFS_SKIP_SMUDGE=1, then that will cause the pointer files to remain in the working tree and cause this problem.

I tried after setting the GIT_LFS_SKIP_SMUDGE to 0, but the issue still exists

from git-lfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.