Teamcity Nuget Server as a cache for public packages
Hi,
I wanted to configure Teamcity to cache on it's own nuget server all publicly downloaded packages that were downloaded via nuget restore.
But I haven't find anything about it.
Some time ago, there was a big scandal that some owner of some javascript package deleted that package from the public repository and then few million web pages broke because of it. From that moment the solution for this is to have private nuget server, that will cache every public package that was and is used in any project that is built.
Does Teamcity have this capability?
Thanks
Please sign in to leave a comment.
Hi Jakub,
There is no direct way to do it, but there should be some easy way. Simply create a build configuration that pulls packages and publishes it on its own nuget server. You can even use specific triggers for that instead of pulling for repositories. If the packages aren't open source, you could consider using the URL Build Trigger,
Also be mindful that publishing some packages might be restricted by licensings of the packages owners, so consider that when doing it.