HAP-470 - (1) Using BuildRetentionFactory to get the build retention values instead of proprietary logic (2) calling setBuildRetentionCount() instead of setBuildRetentionDays()
HAP-470 - using getBuildDiscarder() instead of the deprecated getLogRotator()