Interface SKeepRule
-
- All Superinterfaces:
DbFieldsProvider
,KeepRule
- All Known Implementing Classes:
KeepRuleImpl
public interface SKeepRule extends KeepRule
Standard rule based on filters, partitions and limit.- Since:
- 2019.1
- See Also:
StorableRule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Collection<KeepFilter>
getFilters()
Only builds satisfying all the filters will be kept by this rule.Collection<KeepBuildDataPart>
getKeepBuildDataParts()
KeepLimit
getLimit()
Limits builds to keep (after filtering, for every partition subset).Collection<KeepPartition>
getPartitions()
Provides builds partitioning to subsets: builds are in the same subset if they are in the same partition for every partition.default Collection<DbField<?>>
getRequiredDbFields()
Provides database fields that should be requested within one query.-
Methods inherited from interface jetbrains.buildServer.serverSide.impl.cleanup.v2019.KeepRule
computeBuildIdsToKeepStatistics, computeHistoryBuildsDataToKeep, shouldPreserveArtifactDependencies
-
-
-
-
Method Detail
-
getKeepBuildDataParts
@NotNull Collection<KeepBuildDataPart> getKeepBuildDataParts()
-
getFilters
@NotNull Collection<KeepFilter> getFilters()
Only builds satisfying all the filters will be kept by this rule.
-
getPartitions
@NotNull Collection<KeepPartition> getPartitions()
Provides builds partitioning to subsets: builds are in the same subset if they are in the same partition for every partition. Preserving will be applied for every subset separately.
-
getLimit
@NotNull KeepLimit getLimit()
Limits builds to keep (after filtering, for every partition subset).
-
getRequiredDbFields
@NotNull default Collection<DbField<?>> getRequiredDbFields()
Description copied from interface:KeepRule
Provides database fields that should be requested within one query. Can be empty.- Specified by:
getRequiredDbFields
in interfaceDbFieldsProvider
- Specified by:
getRequiredDbFields
in interfaceKeepRule
-
-