class Cleanup
Specifies clean-up rules for project, build configuration, or template
Cleanup(base: Cleanup? = null, init: Cleanup.() -> Unit = {}) |
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, then they are both null no clean-up will be added |
|
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, then they are both null no clean-up will be added |
|
fun history(days: Int? = null, builds: Int? = null): Unit
Adds a history-level clean-up rule. Either days or builds must be non-null, then they are both null no clean-up will be added |
|
fun option(name: String, value: Boolean): Unit
Adds a specified cleanup option |