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!
Package Retention Policy
-
When are you planning on releasing an update with the ability to control how many versions of a package are kept in a feed? It would be nice if there was a way to add this ourselves via your API if you are not planning to add this in the very near future. Please advise.
Product: ProGet
Version: 3.0.1
-
There is no first-class ability to do this, and we aren't certain if we'll ever add it. That being said, we've discovered it's simply easier to have your build/deployment engine perform this task with a PowerShell script.
-
It seems that if I write an extension that subscribes to the PackagesChanged event and did our logic around how many versions of the changed packages are to be kept this would work. Do you have an examples of using the SDK to interact with the PackageStoreBase and maybe the AfterPushPackageAdapterBase?
I am not finding many others creating extensions.
-
Unfortunately at this point, we have no good examples of this sort of thing. You might be able to get away with inheriting from
DirectoryPackageStore
and extending its behavior onEnableChangeNotifications()
to add your ownFileSystemWatcher
, but it all seems unnecessarily complicated when a simple scheduled task would do the trick.