I manage an application that is continuously integrated via Jenkins. Continuous integration usually happens via a separate Jenkins server, but I am trying to mimic the process of editing source code, committing to source control and then building in Jenkins on my home PC. This usually occurs at my office, but I am working from home now and do not yet have a VPN set up, so I am attempting to continue development at home.
At home, the Jenkins server is my PC, localhost:8080. Git is our source control manager. The application's solution builds fine in Visual Studio on my PC. It depends on some nuget packages stored in a folder on my C: drive. The source code, including the solution, is also stored in a folder on my C: drive. In Visual Studio's NuGet Package Manager, these are my settings.
I get the following error message when Jenkins attempts to restore packages during a build.
The NuGet packages that Jenkins cannot find are the packages in the folder on my C: drive. It seems that Jenkins is unaware of my Visual Studio NuGet Package Manager settings and my C: drive NuGet packages folder and trying to look in the Microsoft Visual Studio Offline Packages directory at "C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\". This is confusing, because Jenkins is trying to build the same solution which builds fine on my PC.
My initial thoughts are that the Jenkins build job needs to be configured to "see" the NuGet packages folder which is on my C: drive, but I am not sure how to configure Jenkins to "see" that folder. Since my solution, the NuGet packages folder and Jenkins live on the same machine, I assumed that Jenkins would have no issues "seeing" the NuGet packages folder on my C: drive.
What am I missing here? I appreciate any help.


