0
votes

I am trying to add a build definition for a project that has private nuget packages hosted in VSTS. The local build works just fine but when I try to build it with an on premise build agent I get the following error: enter image description here

The agent runs behind a proxy and in the build definition i have the following settings:

enter image description here

This is driving me mad please HELP !

1
Can you show the detail logs by setting system.debug as true? And what if you queue the build with Hosted agent?Marina Liu
Have you set HTTP_PROXY and HTTPS_PROXY environment variables to configure the proxy?Eddie Chen - MSFT

1 Answers

0
votes

The issue should related to your network environment on your build agent, such as firewall, proxy. You could also give a try with using the same Nuget task on an agent which has Visual Studio installed and in the same network environment, this will narrow down the error related to the proxy or not.

Workaround:

1) Copy nuget.exe to c:\nuget folder then added the folder to the PATH environment variable.

2) Copy nuget.exe to C:\B\1_tool\NuGet\4.0.0\x64 folder.

3) Create a dummy file called x64.complete in the {agent work folder}_tool\NuGet\4.0.0 folder and copy the nuget.exe file in the {agent work folder}_tool\NuGet\4.0.0\x64 folder.