jetbrains.buildServer.configs.kotlin.v2018_1 / BuildFeature

BuildFeature

open class BuildFeature : Parametrized, Validatable

Represents TeamCity build feature

Constructors

<init>

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

Creates a build feature and initializes it with the specified init block

BuildFeature()

Represents TeamCity build feature

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

Inherited Properties

params

val params: List<Parameter>

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

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

booleanParameter

fun booleanParameter(customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): SingleDelegateProvider<Boolean>

compoundParameter

fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): CompoundDelegateProvider<T>

copyParamsTo

fun <T : Parametrized> copyParamsTo(target: T): T

Copies parameters of this object to the specified target

enumParameter

fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): SingleDelegateProvider<E>

findRawParam

fun findRawParam(paramName: String): Parameter?

hasParam

fun hasParam(paramName: String): Boolean

intParameter

fun intParameter(customName: String? = null): SingleDelegateProvider<Int>

param

fun param(name: String, value: String): Unit

Adds parameter with specified name and value

removeRawParam

fun removeRawParam(paramName: String): Unit

stringParameter

fun stringParameter(customName: String? = null): SingleDelegateProvider<String>

Inheritors

AutoMerge

open class AutoMerge : BuildFeature

Build feature enabling automatic merge in build configuration or template.

CommitStatusPublisher

open class CommitStatusPublisher : BuildFeature

A build feature publishing status to external system

DockerSupportFeature

open class DockerSupportFeature : BuildFeature

Docker Support feature tracks pushed images and adds a dedicated tab with information about them.

FailureCondition

open class FailureCondition : BuildFeature

TeamCity failure condition

FileContentReplacer

open class FileContentReplacer : BuildFeature

A build feature which processes text files by performing regular expressions

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.

GolangFeature

open class GolangFeature : BuildFeature

Golang feature processing Golang tests

InvestigationsAutoAssigner

open class InvestigationsAutoAssigner : BuildFeature

A build feature assigning investigations of build failures automatically based on heuristics

NuGetFeedCredentials

open class NuGetFeedCredentials : BuildFeature

A build feature to provide feed credentials.

NuGetPackagesIndexer

open class NuGetPackagesIndexer : BuildFeature

A build feature to index *.nupkg files in build artifacts into TeamCity NuGet Feed.

Perfmon

open class Perfmon : BuildFeature

A build feature allows you to get the statistics on the CPU, disk and memory usage during a build run on a build agent.

PullRequests

open class PullRequests : BuildFeature

A build feature that introduces GitHub pull requests integration

SshAgent

open class SshAgent : BuildFeature

A build feature which runs SSH agent during a build with the specified SSH key loaded

Swabra

open class Swabra : BuildFeature

A build feature cleaning files and processes created during a build

VcsLabeling

open class VcsLabeling : BuildFeature

Build feature enabling automatic VCS labeling in a build.