Closed ashtonian closed 8 years ago
After finding the agent parameters factory here: https://github.com/JetBrains/teamcity-nuget-support/blob/f5097af091e4abb994d0e549df98271f3cc6a9b1/nuget-agent/src/jetbrains/buildServer/nuget/agent/parameters/impl/PackagesParametersFactoryImpl.java it seems like its conditionally populated based on the command context and parameters passed in. Indicating that its set somewhere else and I'm not sure where that is?
Sorry to spam this ticket but as a temporary work around I just used the CommandLine runner:
Executable Path: %teamcity.tool.NuGet.CommandLine.DEFAULT%\tools\NuGet.exe
Parameters:
push *.nupkg -Timeout 30 -ApiKey redacted key -NonInteractive -Source http://myfeedurl.com/api/packages
@Ashtonian thank you for your feedback i'll fix TW-31707 and release new build in the nearest future
The nuget Publish step always sets a '-CreateOnly' only flag which crashes nuget before it can do anything now, as that flag is no longer a thing. This breaks the nuget publish step entirely and has been broken for two major versions of TC.
youtracked issue: https://youtrack.jetbrains.com/issue/TW-31707