【发布时间】: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。
【问题讨论】:
-
@Nick.McDermaid 不。我认为这不是身份验证问题。
-
好的。如果您认为这不是身份验证问题,则可以添加一些详细信息来解释您为什么这么认为。另外,您是否使用托管代理?你是使用 YAML 还是图形步骤?
-
我有 yaml 文件来创建发布管道。
-
在这种情况下,您也可以发布您的 YAML 吗? (我可能忍不住,但如果其他人可以的话,它会加快速度)
标签: git azure azure-devops