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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With