nuget push from other computer

if TeamCity is configured as a nuget feed, is it possible to add nuget packages from another computer on the network via nuget push?

In the documentation I have only found how to add a package to the feed via TeamCity build pipeline.

How does the URL look like for pushing from another computer (e.g. not localhost)?

1 comment
Comment actions Permalink

The NuGet push that is used to add a package to the feed via TeamCity build step, uses a parameter called %teamcity.nuget.feed.api.key%. This is generated each time a build is started and cannot be used outside of the build configuration.

If I'm understanding your question, it sounds like you want to run the NuGet push from another server to add your packages over to the TeamCity feed. Since it is not possible at this time to generate a %teamcity.nuget.feed.api.key% to use outside of the build configuration, you wouldn't be able to authenticate to the TeamCity feed. As a result, this approach would not be feasible.

Depending on your goals, you may be able to copy your packages to the artifacts directory and use the Nuget Packages Indexer to add your packages to the TeamCity feed.

Otherwise, it would be best to follow the steps outlined in the documentation you've probably already read.


Please sign in to leave a comment.