Namespace BuildSystem.Reclaimer.Strategy.Common
Classes
ReclaimerStrategyCommon
Calculates packages which should be deleted:
- Filter input list - we can reclaim only packages which are in availableToDelete list
- Find all packages according to PackageMask
- Filter according to VersionMask
- Group by minor version
- Inside each group - sort this packages
- If LeaveOnlyLastMinorCount is set - add to result all versions except last count. Property MaxLeaveCount doesn't affect this step
- Inside each left group - add to result all versions except last MaxLeaveCount
- Filter result - there shouldn't be packages which are dependencies for other packages that are not in result
ReclaimerStrategyCommonProps
Strategy to make retention of packages:
- Collect all packages according to VersionMask
- Sort packages by version
- Delete all packages except last MaxLeaveCount packages per each minor version
- Delete all packages except last LeaveOnlyLastMinorCount minor versions