Class CleanupPolicyFactory
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.cleanup.CleanupPolicyFactory
-
public final class CleanupPolicyFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeepNBuildsPolicy
createBuildsArtifactsPolicy(int numBuilds, String artifactPatterns)
static KeepNBuildsPolicy
createBuildsPolicy(int numBuilds, CleanupLevel level)
Policy to cleanup builds older than the N'th successful buildstatic KeepNDaysMBuildsPolicy
createDaysAndBuildsPolicy(int numDays, int numBuilds, CleanupLevel level)
static KeepNDaysPolicy
createDaysArtifactsPolicy(int numDays, String artifactPatterns)
static KeepNDaysPolicy
createDaysPolicy(int numDays, CleanupLevel level)
Policy to cleanup builds more than N days older than the last build regardless of it's statusstatic HistoryRetentionPolicy
createDeleteAllPolicy()
Policy to cleanup all builds regardless of their statusesstatic HistoryRetentionPolicy
createPolicy(String policyType, Map<String,String> policyParams, CleanupLevel cleanupLevel)
static HistoryRetentionPolicy
readFromElement(org.jdom.Element parentElement)
-
-
-
Method Detail
-
readFromElement
@NotNull public static HistoryRetentionPolicy readFromElement(@NotNull org.jdom.Element parentElement)
-
createPolicy
@NotNull public static HistoryRetentionPolicy createPolicy(@NotNull String policyType, @NotNull Map<String,String> policyParams, @NotNull CleanupLevel cleanupLevel)
-
createDeleteAllPolicy
@NotNull public static HistoryRetentionPolicy createDeleteAllPolicy()
Policy to cleanup all builds regardless of their statuses
-
createBuildsPolicy
@TestOnly @NotNull public static KeepNBuildsPolicy createBuildsPolicy(int numBuilds, @NotNull CleanupLevel level)
Policy to cleanup builds older than the N'th successful build
-
createBuildsArtifactsPolicy
@TestOnly @NotNull public static KeepNBuildsPolicy createBuildsArtifactsPolicy(int numBuilds, @NotNull String artifactPatterns)
-
createDaysPolicy
@TestOnly @NotNull public static KeepNDaysPolicy createDaysPolicy(int numDays, @NotNull CleanupLevel level)
Policy to cleanup builds more than N days older than the last build regardless of it's status
-
createDaysArtifactsPolicy
@TestOnly @NotNull public static KeepNDaysPolicy createDaysArtifactsPolicy(int numDays, @NotNull String artifactPatterns)
-
createDaysAndBuildsPolicy
@TestOnly @NotNull public static KeepNDaysMBuildsPolicy createDaysAndBuildsPolicy(int numDays, int numBuilds, @NotNull CleanupLevel level)
-
-