Kumaresh Babu N S
Kumaresh Babu N S

Reputation: 1708

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.DownloadArtifacts(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.

enter image description here Please advice.

Upvotes: 0

Views: 1079

Answers (1)

Jane Ma-MSFT
Jane Ma-MSFT

Reputation: 5242

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.

P.S. 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.

Upvotes: 1

Related Questions