jetbrains.buildServer.configs.kotlin.v2018_1.buildFeatures / FreeDiskSpace

FreeDiskSpace

open class FreeDiskSpace : BuildFeature

Build feature ensuring certain free disk space on the agent before the build by deleting files managed by the TeamCity agent.

See Also

freeDiskSpace

Constructors

<init>

FreeDiskSpace(init: FreeDiskSpace.() -> Unit)FreeDiskSpace()

Build feature ensuring certain free disk space on the agent before the build by deleting files managed by the TeamCity agent.

Properties

failBuild

var failBuild: Boolean?

Whether TeamCity should fail a build if sufficient disk space cannot be freed.

requiredSpace

var requiredSpace: String?

Amount of the free disk space to ensure. Without a suffix treated as bytes. Supported suffixes are: kb, mb, gb, tb.

Inherited Properties

enabled

var enabled: Boolean

Specifies whether the feature is enabled, true by default

id

var id: String?

Build feature id, if not specified will be generated

type

var type: String

Build feature type

Functions

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

create

open fun create(): BuildFeature

Creates an instance of this build feature via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.

toString

open fun toString(): String