使用Git-LFS Azure DevOps管道进行身份验证失败

时间:2019-04-17 20:49:16

标签: azure-devops git-lfs

我在尝试在Azure Devops管道中检出具有git-lfs支持的存储库时出现以下身份验证失败:

##[command]git -c http.<url>="AUTHORIZATION: bearer ***" lfs fetch origin 8d51d72484c1b19a2427ed9f7736d410e43a8a29
fetch: Fetching reference 8d51d72484c1b19a2427ed9f7736d410e43a8a29
fatal: could not read Password for '<url>': terminal prompts disabled
batch response: Git credentials for <url> not found.
error: failed to fetch some objects from '<url>/info/lfs'
##[warning]Git lfs fetch failed with exit code 2, back off 5.476 seconds before retry.

回购还托管在Azure DevOps上,并且管道的配置如下:

jobs:
...
  steps:
  - checkout: self
    lfs: true
    persistCredentials: true

在未启用lfs的情况下成功执行,但仅下载文件指针。它需要什么凭证,我该如何提供?

0 个答案:

没有答案