Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS2017.2 NuGet restore task - ETIMEDOUT 93.184.221.200:443

I have couple of build definitions that are using the "old" NuGet Installer task to restore the dependencies from our internal TFS feed (same collection); the feed url is specified through the NuGet source parameter: enter image description here

The restore process is working fine as below: enter image description here

Switching to the newer version of the task is causing the build failure: enter image description here enter image description here

How can I disable the connection attempt to 93.184.221.200:443 due to the fact that the build agent doesn't have internet access?

I'm using TFS 15.117.26714.0.

Update 1

I copied nuget.exe to c:\nuget folder then added the folder to the PATH environment variable. Same result

Update 2

I copied nuget.exe to C:\B\1_tool\NuGet\4.0.0\x64 folder; the result is below:

enter image description here

like image 706
ds19 Avatar asked Sep 04 '17 15:09

ds19


1 Answers

Update 3 - Workaround

In order to trick the "new" NuGet task to find the nuget.exe in the tool cache you need to 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

like image 166
ds19 Avatar answered Oct 31 '22 11:10

ds19