Class PredefinedRules
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.cleanup.v2019.rules.PredefinedRules
-
public final class PredefinedRules extends Object
Provides some predefined keep rules, in particular those that were designed to replace base rules: this functionality is not finally implemented but was designed and prepared; the main difficulty is in different inheritance base/keep rules order (seeCleanupSettingsSupport
andKeepRulesManager
), but as templates are poorly used, the problem is probably solvable.- Since:
- 2019.2
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SKeepRule
createKeepEverythingRule(boolean preserveArtifactDependencies)
static SKeepRule
createKeepRuleVorVirtualConfiguration(int daysLimit)
static SKeepRule
createLegacyKeepNBuildsRule(ProjectManagerEx projectManager, Set<KeepBuildDataPart> keepBuildDataParts, int buildsCount, boolean preserveArtifactDependencies)
Keep rule analogue of theKeepNBuildsPolicy
.static SKeepRule
createLegacyKeepNDaysMBuildsRule(ProjectManagerEx projectManager, Set<KeepBuildDataPart> keepBuildDataParts, int daysCount, int buildsCount, boolean preserveArtifactDependencies)
Keep rule analogue of theKeepNDaysMBuildsPolicy
.static SKeepRule
createLegacyKeepNDaysRule(ProjectManagerEx projectManager, Set<KeepBuildDataPart> keepBuildDataParts, int daysCount, boolean preserveArtifactDependencies)
Keep rule analogue of theKeepNDaysPolicy
.
-
-
-
Method Detail
-
createKeepEverythingRule
@NotNull public static SKeepRule createKeepEverythingRule(boolean preserveArtifactDependencies)
-
createKeepRuleVorVirtualConfiguration
@NotNull public static SKeepRule createKeepRuleVorVirtualConfiguration(int daysLimit)
-
createLegacyKeepNBuildsRule
@NotNull @TestOnly public static SKeepRule createLegacyKeepNBuildsRule(@NotNull ProjectManagerEx projectManager, @NotNull Set<KeepBuildDataPart> keepBuildDataParts, int buildsCount, boolean preserveArtifactDependencies) throws IllegalRuleException
Keep rule analogue of theKeepNBuildsPolicy
.- Throws:
IllegalRuleException
-
createLegacyKeepNDaysRule
@NotNull @TestOnly public static SKeepRule createLegacyKeepNDaysRule(@NotNull ProjectManagerEx projectManager, @NotNull Set<KeepBuildDataPart> keepBuildDataParts, int daysCount, boolean preserveArtifactDependencies) throws IllegalRuleException
Keep rule analogue of theKeepNDaysPolicy
.- Throws:
IllegalRuleException
-
createLegacyKeepNDaysMBuildsRule
@NotNull @TestOnly public static SKeepRule createLegacyKeepNDaysMBuildsRule(@NotNull ProjectManagerEx projectManager, @NotNull Set<KeepBuildDataPart> keepBuildDataParts, int daysCount, int buildsCount, boolean preserveArtifactDependencies) throws IllegalRuleException
Keep rule analogue of theKeepNDaysMBuildsPolicy
.- Throws:
IllegalRuleException
-
-