class Cleanup
Specifies clean-up rules for project, build configuration, or template
inner class BaseRuleWrapper
Holds a base rule |
|
class KeepRule
Specifies a keep rule. A keep rule defines what particular data to preserve during the clean-up. Multiple keep rules can be assigned to a project or build configuration. |
Cleanup()
Specifies clean-up rules for project, build configuration, or template |
val keepRules: ArrayList<KeepRule> |
|
var preventDependencyCleanup: Boolean?
Specifies whether dependency builds should be cleaned. Null means use default, true means prevent clean-up, false means don't prevent clean-up. |
fun all(days: Int? = null, builds: Int? = null): Unit
Adds an 'everything'-level clean-up rule. Either days or builds must be non-null. If they are both null, clean-up will not be configured. |
|
fun artifacts(days: Int? = null, builds: Int? = null, artifactPatterns: String? = null): Unit
Adds an artifacts-level clean-up rule. Either days or builds must be non-null. If they are both null, clean-up will not be configured. |
|
fun baseRule(init: BaseRuleWrapper.() -> Unit): Unit
Specifies a base rule. A base rule defines what data to clean up in general. Allows preserving a specified number of successful builds and/or choose the time period to keep builds in the history. |
|
fun disableKeepRule(idToDisable: String): Unit
Disables an inherited keep rule by its ID fun disableKeepRule(rule: KeepRule): Unit
Disables an inherited keep rule |
|
fun findKeepRuleById(id: String): KeepRule?
Finds a keep rule with the specified id |
|
fun history(days: Int? = null, builds: Int? = null): Unit
Adds a history-level clean-up rule. Either days or builds must be non-null. If they are both null, clean-up will not be configured. |
|
fun keepRule(init: KeepRule.() -> Unit): KeepRule
Creates and registeres a new keep rule for this clean-up definition. IDs must be specified for all keep rules. |
|
fun option(name: String, value: Boolean): Unit
Adds a specified clean-up option |
|
fun validate(consumer: ErrorConsumer): Unit |
fun Cleanup.copy(): Cleanup
Copies the receiver cleanup |
|
fun Cleanup.copyTo(target: Cleanup): Cleanup
Copies the receiver cleanup to the specified target |