簡體   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