Hi, Would you please let me know what could be wrong? and how I could get it working?
We are using Continua 1.5.1.121 with a server and few agents. I would like to use NuGet actions -> NuGet update
One of the agents has Visual Studio 2013 (update 4) installed. It also contains Nuget installation (C:\Program Files (x86)\NuGet\Visual Studio 2013\NuGet.Tools.vsix). In addition I downloaded Nuget.exe and put in the same folder (C:\Program Files (x86)\NuGet\Visual Studio 2013\nuget.exe). The path is added to Path environment variables in the agent.
After rebooting the agent, still I get the following in the agent capability:
Best Regards,
Mohsen
If you open a cmd prompt on the machine and run :
where nuget.exe
does it find it? The default property collector only checks the path, and I had a look on our agents here and they are all finding it via the path.
Hi Vincent,
Yes, calling nuget from command line, from any path, can find it. However the path displayed in the continua agent properties list, does not contain the path information for nuget! Somehow the property doesnt get updated, although I did restart the agent and refreshed the server property collection.
Regards,
Mohsen
Hi Moshen,
Can you run the following SQL on your database?
UPDATE
builds_agent
SET
propertieshash=0
There restart the server service.
I think there may be a problem with the code which checks if anything has changed before updating the agent properties. I’ll do some more investigation and get a fix out as soon as possible.
Hi Dave,
I managed to get the agent contemptible to run the stage by using ‘Custom’ path in “Nuget Update Action” window (providing a value of C:\Program Files (x86)\NuGet\Visual Studio 2013\Nuget.exe to the Path field).
Should I still run the command (UPDATE builds_agent SET propertieshash=0) on the db?
Regards
Mohsen
Hi Mohsen,
This new version should fix the issue with the agent properties not updating. It’s up to you if you want to keep using the custom path or go back to using the property collector to find the Nuget path.