Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Cleaning Old NuGet Packages
-
I think this is likely a feature request. We use ProGet to post and fetch CI builds of our own shared components all day long. After awhile, you can imagine this results a number of unneeded builds to pile up that need to be cleaned because they are no longer relevant to current development. To get around this problem, I wrote my own cheesy script to save the most recent number of builds - and so it solves our problem, but it can be problematic. It seems like when I delete the packages, ProGet can stop serving newly posted packages while it's re-indexing - this has caused downstream CI builds to fail because ProGet can't find the latest posted package of the shared component. I got around that by cleaning only during lulls in dev. but I've wondered if there was a better way, or a cleaning feature in the product I've missed. Ultimately, I'd really like a setting in the feeds that would allow me to "Keep X Number of Builds" and cleanup the old packages on a schedule so I could toss my script. :-) Does a related-type feature exist and I've missed it? I've checked out Artifactory and Nexus and while they can clean maven snapshots AOK, both appear to lack this feature for NuGet packages. Thanks.
Product: ProGet
Version: 3.5.4
-
As it turns out, this is part of the package retention feature planned for v3.6 (roadmap is here). This will allow a wide range of retention rules for package cleanup, including the scenario you've described. We may have a public beta released today, but that could get pushed to Monday depending on testing.
-
Wow. That's great news! I'll definitely be checking that out when the next version arrives.
-
I found that the feature to delete old packages is not available in the Free Edition. Just wanted to be sure... Is that correct, or should this be a Free Edition feature?
Thanks
-
Retention Policies are not inclused in the free edition.
You can still delete packages manually however.