【问题标题】:Unable to download the source code in Azure DevOps Release无法在 Azure DevOps Release 中下载源代码
【发布时间】:2021-01-04 15:57:17
【问题描述】:

我在 Azure Repo 中有 Spring Boot 应用程序。我正在尝试通过 Azure DevOps Release Pipeline 在 Azure App Service 上使用 docker 部署应用程序。在发布管道中下载源代码工件时遇到问题。

错误信息:

2021-01-03T11:13:10.5485744Z ##[error]Downloading artifacts failed: System.InvalidOperationException: Git lfs fetch failed with exit code: 2. Git lfs logs returned with exit code: 0. 在 Microsoft.VisualStudio.Services.Agent.Worker.Build.GitSourceProvider.GetSourceAsync(IExecutionContext executionContext,ServiceEndpoint 端点,CancellationToken cancelToken) 在 Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.TfsGitArtifact.DownloadAsync(IExecutionContext executionContext, ArtifactDefinition artifactDefinition, String downloadFolderPath) 在 Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.c__DisplayClass39_2.d.MoveNext() --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.ExecuteAsync(Func1 操作) 在 Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifacts(IExecutionContext executionContext,IList1 agentArtifactDefinitions,字符串 artifactsWorkingFolder) 在 Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifactsAndCommitsAsync(IExecutionContext executionContext,对象数据) 2021-01-03T11:13:10.5536373Z ##[error]Git lfs 提取失败,退出代码:2. Git lfs 日志返回退出代码:0。

请指教。

【问题讨论】:

  • 看起来像这样吗? stackoverflow.com/questions/55735763/…
  • @Nick.McDermaid 不。我认为这不是身份验证问题。
  • 好的。如果您认为这不是身份验证问题,则可以添加一些详细信息来解释您为什么这么认为。另外,您是否使用托管代理?你是使用 YAML 还是图形步骤?
  • 我有 yaml 文件来创建发布管道。
  • 在这种情况下,您也可以发布您的 YAML 吗? (我可能忍不住,但如果其他人可以的话,它会加快速度)

标签: git azure azure-devops


【解决方案1】:

问题的原因可能是你的 Git 和 Git LFS 版本太低了。

您可以尝试升级到最新版本,看看问题是否得到解决。

附:如果您使用 Microsoft 托管的 Windows 和 linux 代理,则 GIT LFS 的预安装版本为 2.12.1。尝试将其更新为2.13.1

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-11-24
    • 1970-01-01
    • 2020-04-23
    • 1970-01-01
    • 2020-10-19
    • 2021-03-09
    • 1970-01-01
    相关资源
    最近更新 更多