Reputation: 28332
We're using team city as a nuget server and the artifact cleaning is removing old nuget packages. Unfortunately some of our packages aren't built that often, and when they get cleaned up other builds break.
I've tried changing the clean up rules to exclude *.nupkg
, but this doesn't seem to be working.
Any ideas?
Upvotes: 17
Views: 2598
Reputation: 2417
I don't know about the version of TC you were using when this was posted, but in version 7 and up there is a place to set rules for clean ups.
By setting -:*.nupkg
you can exclude NuGet packages from the cleanup process.
Upvotes: 4
Reputation: 133
In TeamCity's Build History Clean-up options, near the bottom you'll find a Dependencies category with an option to prevent cleanup of builds that other build configurations depend on. I think that will solve your problem.
Upvotes: 1