【发布时间】:2019-11-09 07:19:02
【问题描述】:
我有一个在 Azure Repos 中使用 Git LFS 的项目,其中使用 Git LFS 签入了几个二进制图像文件。当我的 Azure Pipelines 构建执行 git pull 时,图像文件不会从 Git LFS 中提取,我只剩下几个零字节图像文件。
我正在使用自定义的自托管 Azure Pipelines 构建服务器,该服务器上安装了最新版本的 Git LFS:
PS C:\rehan> git lfs --version git-lfs/2.7.2 (GitHub; windows amd64; go 1.12.2; git 08a08ae0)
我尝试添加步骤来执行git lfs install,但这没有帮助。当我在登录到构建服务器后手动执行git lfs pull 时,文件已正确下载。当我在 Azure Pipeline 中运行 git lfs pull 作为构建步骤时,出现以下错误:
fatal: could not read Username for 'https://foo.visualstudio.com': terminal prompts disabled
batch response: Git credentials for https://foo.visualstudio.com/Bar/_git/Bar not found.
error: failed to fetch some objects from 'https://foo.visualstudio.com/Bar/_git/Bar.git/info/lfs'
Downloading LFS objects: 0% (0/1), 0 B | 0 B/s
##[error]PowerShell exited with code '1'.
【问题讨论】:
标签: git azure-pipelines git-lfs azure-repos