jetbrains.buildServer.configs.kotlin.v10 / Cleanup

Cleanup

class Cleanup

Specifies clean-up rules for project, build configuration, or template

Constructors

<init>

Cleanup(base: Cleanup? = null, init: Cleanup.() -> Unit = {})

Properties

preventDependencyCleanup

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.

Functions

all

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

artifacts

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

history

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

option

fun option(name: String, value: Boolean): Unit

Adds a specified cleanup option