1

在我们的 mac slave 上安装了 git-lfs 并按照https://medium.com/@priya_talreja/git-lfs-setup-in-jenkins-ee80879007e3上的文章进行操作。建立詹金斯的工作

我们收到以下错误:

Git LFS initialized.     
xxxx
xxxx
xxxx
Enabling Git LFS pull
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 94723c3732a48a49f41a70248233e52b015632cb # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git lfs pull origin # timeout=10
FATAL: Could not checkout 94723c3732a48a49f41a70248233e52b015632cb
hudson.plugins.git.GitException: Command "git lfs pull origin" returned status code 1:
stdout: 
stderr: git: 'lfs' is not a git command. See 'git --help'. 

在 4 个节点中,一个节点正在工作,其他节点没有。[Mac OS X;版本:10.14.6] git 版本:2.22.0 / 2.21.0 /2.23.0 [错误获取版本:2.22.0 和 2.23.0] git-lfs 版本:2.11.0

4

1 回答 1

0

在我的 RHEL-7 机器中遇到了同样的问题,并按照以下步骤使其工作。(我的机器中缺少 git lfs,使用以下步骤安装相同)

 $ sudo yum install git

 $ curl -s https://setup.ius.io/ | sudo bash 

 $ sudo yum install git2u

 $ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash

 $ sudo yum install git-lfs

 $ git lfs install

参考链接:https ://github.com/git-lfs/git-lfs/wiki/Installation

于 2021-09-01T14:01:13.147 回答