简体   繁体   中英

Unable to download the source code in Azure DevOps Release

I have spring boot application in Azure Repo. I'm trying to deploy the application using docker on Azure App Service through Azure DevOps Release Pipeline. Having an issue to download the source code artifacts in the release pipeline.

Error Message:

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. at Microsoft.VisualStudio.Services.Agent.Worker.Build.GitSourceProvider.GetSourceAsync(IExecutionContext executionContext, ServiceEndpoint endpoint, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.TfsGitArtifact.DownloadAsync(IExecutionContext executionContext, ArtifactDefinition artifactDefinition, String downloadFolderPath) at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.<>c__DisplayClass39_2.<b__2>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.ExecuteAsync(Func1 action) at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.Downl 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 fetch failed with exit code: 2. Git lfs logs returned with exit code: 0.

在此处输入图像描述 Please advice.

The reason of the question may be that your Git and Git LFS versions are too low.

You can try to upgrade to the latest versions to see if the question is resolved.

PS If you are using Microsoft-hosted agent for windows and linux, the pre-installed version of GIT LFS is 2.12.1 . Try to update it to 2.13.1 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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