jetbrains.buildServer.configs.kotlin.v2018_1 / Cleanup

Cleanup

class Cleanup

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

Constructors

<init>

Cleanup()

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

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

Extension Functions

copy

fun Cleanup.copy(): Cleanup

Copies the receiver cleanup

copyTo

fun Cleanup.copyTo(target: Cleanup): Cleanup

Copies the receiver cleanup to the specified target