繁体   English   中英

无法下载 Azure DevOps Release 中的源代码

[英]Unable to download the source code in Azure DevOps Release

我在 Azure 回购中有 spring 启动应用程序。 我正在尝试通过 Azure DevOps 发布管道在 Azure 应用服务上使用 docker 部署应用程序。 在发布管道中下载源代码工件时遇到问题。

错误信息:

2021-01-03T11:13:10.5485744Z ##[错误]下载工件失败:System.InvalidOperationException:Git lfs 提取失败,退出代码:2. Z0BCC70105AD279503E31FE7B3F47B660Z 在 Microsoft.lf. Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.TfsGitArtifact.DownloadAsync(IExecutionContext executionContext, ArtifactDefinition artifactDefinition, String downloadFolderPath) 的 Agent.Worker.Build.GitSourceProvider.GetSourceAsync(IExecutionContext executionContext, ServiceEndpoint endpoint, CancellationToken cancelToken)。 VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.<>c__DisplayClass39_2.<b__2>d.MoveNext() --- 在 Microsoft.VisualStudio.Services.Agent 处从先前引发异常的位置结束堆栈跟踪。 Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.Downl 的 Worker.Release.RetryExecutor.ExecuteAsync(Func1 动作) oadArtifacts(IExecutionContext executionContext, IList1 agentArtifactDefinitions, String artifactsWorkingFolder) at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifactsAndCommitsAsync(IExecutionContext executionContext, Object data) 2021-01-03T11:13:10.5536373Z ##[error]Git lfs 提取失败,退出代码:2. Git lfs 日志返回退出代码:0。

在此处输入图像描述 请指教。

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM