VSTS intermittently nuget package restore fails

cpoDesign

How do you fix intermittent package restore fails in VSTS?

During my build I have a task to restore Nuget packages.

My build configuration does have multiple configurations for the same code.

Every so often, I get build failure where packages fails to restore, yet the the other configuration does succeed. If I do kick off the build again the build will succeed.

The error is:

...nuget-task-common\NuGet\3.3.0\NuGet.exe failed with return code: 1

enter image description here

cpoDesign

It took a little research to find out the issue.

Nuget had a bug related to exactly this, which has been resolved.

Resolution

I have changed the configuration to use v3.5 and the issue has been resolved.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related