-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nugetRestore fails with automatically downloaded NuGet under LocalSystem #49
Comments
What about NuGet 3.4.4 with the gradle plugin? Also, the executable seems to return a non-zero code, isn't there any output? (If you run with |
|
Additional information to figure out the problem:
when upgrading the JVM version Jenkins and within Gradle is running on from 7 to 8. I tried to figure out why Java 7 backed Gradle build worked before. It seems, with Java 8 the system profile path (where also the gradle.properties file is taken from) has been changed from "C:.gradle" to "'C:\Windows\System32\config\systemprofile\.gradle". Setting up I guess, there must be a Windows system configuration which allows to start .NET applications from within the localsystem's profile path. But I did not find any resource about that on the net... |
This is maybe related: https://github.com/dotnet/cli/issues/4196 (moved to NuGet/Home#3839) |
CI services, for example default Jenkins setup, often runs under LocalSystem account.
In that scenario,
nugetRestore
fails with the following error using the latest plug-in version 2.14 and automatically downloaded NuGet 3.4.3:If I switch to system NuGet 3.4.4 on the PATH,
nugetRestore
works just fine. BTW, I'd document how to do that: I had to read source code to see if this was an option. I set upNUGET_HOME
in System environment variables, and that fixed the issue.Also, prior to switch to LocalSystem we had Jenkins running under Windows user account and this is not an issue in that scenario.
The text was updated successfully, but these errors were encountered: