Keep Rule
Types
Represents dataToKeep
Configures KeepAtLeast which keeps builds based on their age
Holds configuration of history and statistics dataToKeep
Holds the range limit for this keep rule
Holds all the filters used to pick out the builds this keep rule will preserve
Holds the artifacts pattern to keep
Properties
If set to true then the keepAtLeast will be applied to each branch selected by the branch filter (or to each branch in the configuration if no branch filter is specified) separately. applyPerEachBranch could be used to enable.
Specifies what data should be kept in builds preserved by this keep rule
Defines the limit for this keep rule. allBuilds will be used if not specified
If set to true and if this build configuration uses any artifact dependencies, then this keep rule will prevent deleting builds in build configurations where the artifact dependencies are used from.
Functions
Specifies that all artifacts should be kept in this HistoryAndStatistics
Specifies that only artifacts should be kept in builds preserved by this keep rule. History and statistics will be automatically preserved, logs will be removed (if no other keep rule specifies keeping them).
If used, then keepAtLeast will be applied to each branch selected by the branch filter (or to each branch in the configuration if no branch filter is specified) separately.
Allows specifying filters to pick out the builds this keep rule will preserve
Specifies that only artifacts matched by patterns should be kept in builds preserved by this keep rule. History and statistics will be automatically preserved, logs will be removed (if no other keep rule specifies keeping them).
Builds dataToKeep from parameters
Constructs the keepAtLeast from raw parameters
Specifies that all artifacts matched by patterns should be kept in this HistoryAndStatistics
Specifies that this keep rule will preserve all builds matched by the selected filters up to the nth day since the current day
Specifies that this keep rule will preserve all builds matched by the selected filters up to the nth day. Allows specifying the policy to select the limiting day in the DaysLimit.since field.
Specifies that everything should be kept in builds preserved by this keep rule
Specifies that only history and statistics should be kept in builds preserved by this keep rule. Logs and artifacts will be removed (if no other keep rule specifies keeping them).
Specifies that history and statistics should be kept in builds preserved by this keep rule and allows to select which parts of build results (e.g. logs, artifacts) should also be kept.
Specifies that only logs should be kept in builds preserved by this keep rule. History and statistics will be automatically preserved, artifacts will be removed (if no other keep rule specifies keeping them).
Specifies that only statistics should be kept in builds preserved by this keep rule. Builds won't be visible in the build history, logs and artifacts will be removed (if no other keep rule specifies keeping them).