首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jenkins Pipeline: git-lfs:未找到命令

Jenkins Pipeline: git-lfs:未找到命令
EN

Stack Overflow用户
提问于 2020-08-11 01:28:59
回答 1查看 804关注 0票数 1

我已经将Jenkins Pipeline Job配置为从Git版本控制运行脚本。我已经给出了一个存储库路径,但它在使用git lfs命令未找到时检出失败。

代码语言:javascript
复制
[Pipeline] End of Pipeline
    hudson.plugins.git.GitException: Command "git checkout -f 0dac40f9a4f8908d177e319b2742908018663eb1" returned status code 128:
    stdout: 
    stderr: git-lfs smudge -- 'testlfs.txt': git-lfs: command not found
    error: external filter git-lfs smudge -- %f failed -1
    error: external filter git-lfs smudge -- %f failed
    fatal: testlfs.txt: smudge filter lfs failed


    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2372)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$1000(CliGitAPIImpl.java:80)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2681)
    Caused: hudson.plugins.git.GitException: Could not checkout 0dac40f9a4f8908d177e319b2742908018663eb1
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2705)
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1195)
        at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124)
        at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
        at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
        at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
    Finished: FAILURE

如何解决此问题?请帮帮我!

EN

回答 1

Stack Overflow用户

发布于 2020-08-11 01:34:27

这是报告错误的JENKINS-52857和解决方法手动创建的链接

代码语言:javascript
复制
ln -s /usr/local/bin/git-lfs /usr/local/Cellar/git/2.21.0/libexec/git-core/git-lf
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63345134

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档