Package-level declarations

Types

Link copied to clipboard
data class AbsoluteId(val absoluteId: String) : Id

Entity id to be used as is, without any prefixes provided by TeamCity.

Link copied to clipboard
abstract class AbstractStage(val project: Project?) : Stage, DependencyConstructor
Link copied to clipboard

Definition of a cloud image for a cloud profile agent cloud profile for AWS EC2 in a project.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ArtifactRule(val include: Boolean, val src: String, val dst: String?)

A rule specifying how to copy artifacts from dependency. Use methods of the companion object to create it.

Link copied to clipboard
data class BaseRule(val level: CleanupLevel, val days: Int? = null, val builds: Int? = null, val artifactPatterns: String? = null)

Base clean-up rule, use one of the methods in Cleanup to create it

Link copied to clipboard

A Branch Remote Run Trigger which triggers a new personal build each time TeamCity detects changes in particular branches

Link copied to clipboard

Represents TeamCity build feature. Use concrete build feature classes such as XmlReport instead of this class.

Link copied to clipboard
Link copied to clipboard
data class BuildRule(val id: String, val revision: String, val branch: String? = null)

A rule matching a build, use one of the methods in ArtifactDependency class to create it

Link copied to clipboard

Represents TeamCity Build Step. Use concrete build step classes such as MavenBuildStep instead of this class.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class BuildTypeChartsOrder(init: ChartsOrder.() -> Unit = {}) : ChartsOrder

A project feature for specifying build-configuration-level Charts order.

Link copied to clipboard
open class BuildTypeCustomChart(init: CustomChart.() -> Unit = {}) : CustomChart

A build-configuration-level Custom Chart

Link copied to clipboard
open class BuildTypeRefs(prefix: String, buildType: BuildType)

Provides methods for creating references to buildType parameters

Link copied to clipboard

Contains common settings between BuildType and Template

Link copied to clipboard

Abstact class for feature for specifying Custom Charts order.

Link copied to clipboard

VCS checkout mode, specifies how sources are transferred to the build agent

Link copied to clipboard
Link copied to clipboard

Specifies what data should be cleaned. Each level includes the one(s) above it.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class CompoundParam<V>(val value: String?) : Parametrized
Link copied to clipboard
Link copied to clipboard
interface CompoundStage : Stage
Link copied to clipboard
abstract class CompoundStageImpl(val project: Project?) : AbstractStage, CompoundStage
Link copied to clipboard
class Consumer(val errors: MutableList<String> = arrayListOf()) : ErrorConsumer
Link copied to clipboard

Abstact class for Project and Build Type related custom charts.

Link copied to clipboard
Link copied to clipboard
class Dependency(var buildTypeId: IdOwner)

Represents dependency of one build on another

Link copied to clipboard
Link copied to clipboard
object DslContext

Context of DSL execution

Link copied to clipboard
interface ErrorConsumer

Consumes validation errors

Link copied to clipboard

Action in case of snapshot dependency failure.

Link copied to clipboard

Represents TeamCity failure condition. Use concrete build failure condition classes such as BuildFailureOnText instead of this class.

Link copied to clipboard
Link copied to clipboard
sealed class Id : IdOwner

An id of a TeamCity entity. It appears in the web UI and is used in urls. If the entity has a uuid specified, then the id can be changed at any time. If uuid is omitted, then TeamCity treats an entity with a changed id as a new entity, all data associated with the old entity will be lost (e.g. a build history, a commit graph).

Link copied to clipboard

The Duplicates Finder (Java) build runner is intended for catching similar code fragments and providing a report on discovered repetitive blocks of Java code.

Link copied to clipboard

The Inspections (IntelliJ IDEA) build runner is intended to run code analysis based on IntelliJ IDEA inspections for your project.

Link copied to clipboard

IntelliJ IDEA Project build runner allows you to build a project created in IntelliJ IDEA

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface IdOwner
Link copied to clipboard

Definition of a cloud image for a cloud profile agent cloud profile for Kubernetes in a project.

Link copied to clipboard
Link copied to clipboard

The Matrix Builds feature allows you to define a build configuration with different sets of parameters/parameter values. Running this build configuration creates a batch of separate builds, each running its own parameter set.

Link copied to clipboard
Link copied to clipboard
data class Parameter(val name: String, val value: String, val spec: ParameterSpec? = null)
Link copied to clipboard
abstract class ParameterDelegate<T>(val paramName: String) : ReadWriteProperty<Parametrized, T?>
Link copied to clipboard

Specifies how parameter is shown in the Run Custom Build dialog

Link copied to clipboard
class ParameterRef(val name: String)

Reference to a parameter

Link copied to clipboard
sealed class ParameterSpec

Parameter specification

Link copied to clipboard
class ParameterSpecCheckbox(val label: String = "", val description: String = "", val display: ParameterDisplay = ParameterDisplay.NORMAL, val readOnly: Boolean = false, val checkedValue: String? = null, val uncheckedValue: String? = null) : ParameterSpec
Link copied to clipboard
class ParameterSpecFreeForm(val type: String, val arguments: Map<String, String> = linkedMapOf()) : ParameterSpec
Link copied to clipboard
class ParameterSpecPassword(val label: String = "", val description: String = "", val display: ParameterDisplay = ParameterDisplay.NORMAL, val readOnly: Boolean) : ParameterSpec
Link copied to clipboard
class ParameterSpecRegex(val label: String = "", val description: String = "", val display: ParameterDisplay = ParameterDisplay.NORMAL, val readOnly: Boolean = false, val regex: String = "", val validationMessage: String = "") : ParameterSpec
Link copied to clipboard
open class ParameterSpecRemote(val label: String = "", val description: String = "", val display: ParameterDisplay = ParameterDisplay.NORMAL, val readOnly: Boolean = false, val remoteType: String = "", val params: Map<String, String>) : ParameterSpec
Link copied to clipboard
class ParameterSpecSelect(val label: String = "", val description: String = "", val display: ParameterDisplay = ParameterDisplay.NORMAL, val readOnly: Boolean = false, val allowMultiple: Boolean = false, val valueSeparator: String = ",", val options: List<Any>) : ParameterSpec
Link copied to clipboard
class ParameterSpecText(val label: String = "", val description: String = "", val display: ParameterDisplay = ParameterDisplay.NORMAL, val readOnly: Boolean = false, val allowEmpty: Boolean = true) : ParameterSpec
Link copied to clipboard
open class Parametrized
Link copied to clipboard
Link copied to clipboard

Represents TeamCity project.

Link copied to clipboard
open class ProjectChartsOrder(init: ChartsOrder.() -> Unit = {}) : ChartsOrder

A project feature for specifying project-level Charts order.

Link copied to clipboard
open class ProjectCustomChart(init: CustomChart.() -> Unit = {}) : CustomChart

A project-level Custom Chart

Link copied to clipboard

Represents project-level feature

Link copied to clipboard

Collection of features in a project

Link copied to clipboard
open class PropInitOnceDelegate<T>(val instance: T)

Can be specified as a delegate for some property. Collects all initializers for such properties but does not call them right there. Instead all initializers are called inside applyAllInitFunctions

Link copied to clipboard

This class is used to describe condition for artifact publishing at the end of the build

Link copied to clipboard
data class RelativeId(val relativeId: String) : Id

Entity id relative to the project where versioned settings were enabled. When DSL executed the id of the project with enabled versioned settings is prepended to all relative ids. Can be used only in DSL generated with the 'Generate portable DSL scripts' option enabled.

Link copied to clipboard

Represents TeamCity Remote Parameter. Use concrete remote parameter classes instead of this class.

Link copied to clipboard
data class Requirement(val type: RequirementType, val param: String, val value: String? = null, val id: String? = null)

An agent requirement, use methods in Requirements class to create it

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Adds a Shared Resource project feature which allows limiting concurrently running builds using a shared resource. Note that a shared should be defined in project settings and then enabled in reguired build configurations.

Link copied to clipboard

Adds a Shared Resource build feature which allows limiting concurrently running builds using a shared resource. Note that corrensponding Shared Resources project feature should be defined.

Link copied to clipboard
class Single(val project: Project?, val buildType: BuildType) : AbstractStage, Stage, DependencyConstructor
Link copied to clipboard
class SingleDelegateProvider<T>(val customParamName: String? = null, val mapping: Map<T, String?>? = null) : PropertyDelegateProvider<Parametrized, ReadWriteProperty<Parametrized, T?>>
Link copied to clipboard
class SingleParamDelegate<T>(paramName: String, val mapping: Map<T, String?>? = null) : ParameterDelegate<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Stage
Link copied to clipboard
Link copied to clipboard
annotation class TeamCityDsl
Link copied to clipboard

Represents TeamCity build template.

Link copied to clipboard

Represents TeamCity build trigger. Use concrete trigger classes such as VcsTrigger instead of this class.

Link copied to clipboard

Set of build parameters that are added to builds triggered by a trigger.

Link copied to clipboard
Link copied to clipboard
interface Validatable
Link copied to clipboard

A base class representing TeamCity VCS root.

Link copied to clipboard
data class VcsRootEntry(val root: IdOwner, val checkoutRules: List<String>)
Link copied to clipboard
open class VcsRootRefs(vcsRoot: VcsRoot)

Provides methods for creating references to VCS related properties

Link copied to clipboard

Contains settings from the Version Control Settings tab of build configuration or template.

Link copied to clipboard

Definition of a cloud image for a cloud profile agent cloud profile for VMware vSphere and vCenter in a project.

Properties

Link copied to clipboard

Specifies whether a missing uuid should cause a validation error. If set to false (default) an omitted uuid is allowed and is later reconstructed by id of the entity.

Link copied to clipboard
val TQ: String

Used to escape triple quotes inside multi-line strings

Link copied to clipboard

Version of TeamCity in which kotlin code was generated.

Functions

Link copied to clipboard

Definition of a cloud image for a cloud profile agent cloud profile for AWS EC2 in a project.

Link copied to clipboard
Link copied to clipboard

Adds a Branch Remote Run Trigger which triggers a new personal build each time TeamCity detects changes in particular branches

Link copied to clipboard

Adds a project feature for specifying build-configuration-level Charts order.

Link copied to clipboard

Adds a build-configuration-level Custom Chart

Link copied to clipboard
inline fun <T : BuildFeature> T.copy(): T

Copies the receiver build feature.

inline fun <T : BuildStep> T.copy(): T

Copies the receiver build step.

inline fun <T : BuildType> T.copy(): T

Copies the receiver buildType

inline fun <T : ProjectFeature> T.copy(): T

Copies the receiver project feature. if the receiver doesn't have a default constructor.

inline fun <T : Project> T.copy(): T

Copies the receiver project

inline fun <T : Template> T.copy(): T

Copies the receiver template

inline fun <T : Trigger> T.copy(): T

Copies the receiver trigger.

inline fun <T : VcsRoot> T.copy(): T

Copies the receiver VCS root.

Copies the receiver artifact dependency

Copies the receiver build features

Copies the receiver build steps

Copies the receiver cleanup

Copies the receiver dependencies

Copies the receiver dependency

Copies the receiver failure conditions

Copies the receiver project features

Copies the receiver requirements

Copies the receiver snapshot dependency

Copies the receiver triggers

Copies the receiver vcs settings

inline fun <T : BuildFeature> T.copy(block: T.() -> Unit): T

Copies the receiver build feature and initialize it with the specified block.

inline fun <T : BuildStep> T.copy(block: T.() -> Unit): T

Copies the receiver build step and initialize it with the specified block.

inline fun <T : BuildType> T.copy(block: T.() -> Unit): T

Copies the receiver buildType and initialize it with the specified block.

inline fun <T : ProjectFeature> T.copy(block: T.() -> Unit): T

Copies the receiver project feature and initialize it with the specified block.

inline fun <T : Project> T.copy(block: T.() -> Unit): T

Copies the receiver project and initialize it with the specified block.

inline fun <T : Template> T.copy(block: T.() -> Unit): T

Copies the receiver template and initialize it with the specified block.

inline fun <T : Trigger> T.copy(block: T.() -> Unit): T

Copies the receiver trigger and initialize it with the specified block.

inline fun <T : VcsRoot> T.copy(block: T.() -> Unit): T

Copies the receiver VCS root and initialize it with the specified block.

Link copied to clipboard

Copies the receiver build settings to the specified target

Link copied to clipboard
fun <T : BuildFeature> T.copyTo(target: T): T

Copies the receiver build feature to the specified target build feature

fun <T : BuildStep> T.copyTo(target: T): T

Copies the receiver build step to the specified target build step

fun <T : BuildType> T.copyTo(target: T): T

Copies the receiver buildType to the specified target

fun <T : ProjectFeature> T.copyTo(target: T): T

Copies the receiver project feature to the specified target feature

fun <T : Project> T.copyTo(target: T): T

Copies the receiver project to the specified target

fun <T : Template> T.copyTo(target: T): T

Copies the receiver template to the specified target

fun <T : Trigger> T.copyTo(target: T): T

Copies the receiver trigger to the specified target trigger

fun <T : VcsRoot> T.copyTo(target: T): T

Copies the receiver VCS root to the specified target VCS root

Copies the receiver build features to the specified target

Copies the receiver build steps to the specified target

Copies the receiver cleanup to the specified target

Copies the receiver dependencies to the specified target

Copies the receiver failure conditions to the specified target

Copies the receiver project features to the specified target

Copies the receiver requirements to the specified target

Copies the receiver triggers to the specified target

Copies the receiver vcs settings to the specified target

Link copied to clipboard

The Duplicates Finder (Java) build runner is intended for catching similar code fragments and providing a report on discovered repetitive blocks of Java code.

Link copied to clipboard

The Inspections (IntelliJ IDEA) build runner is intended to run code analysis based on IntelliJ IDEA inspections for your project.

Link copied to clipboard
fun BuildSteps.ideaRunner(init: IdeaRunner.() -> Unit = {})

IntelliJ IDEA Project build runner allows you to build a project created in IntelliJ IDEA

Link copied to clipboard

Definition of a cloud image for a cloud profile agent cloud profile for Kubernetes in a project.

Link copied to clipboard
Link copied to clipboard
fun BuildFeatures.matrix(init: MatrixFeature.() -> Unit = {})

The Matrix Builds feature allows you to define a build configuration with different sets of parameters/parameter values. Running this build configuration creates a batch of separate builds, each running its own parameter set.

Link copied to clipboard
Link copied to clipboard
fun project(project: Project)
fun project(init: Project.() -> Unit)

Defines TeamCity project

Link copied to clipboard

Adds a project feature for specifying project-level Charts order.

Link copied to clipboard

Adds a project-level Custom Chart

Link copied to clipboard
fun relativeIdCannotBeUsed(description: String, id: Id?): String
Link copied to clipboard
fun reportRelativeIds(project: Project, rootProject: Boolean)
Link copied to clipboard
fun <T> runPrivileged(function: () -> T): T
Link copied to clipboard
Link copied to clipboard

Adds a Shared Resource project feature which allows limiting concurrently running builds using a shared resource. Note that a shared should be defined in project settings and then enabled in reguired build configurations.

Link copied to clipboard

Adds a Shared Resource build feature which allows limiting concurrently running builds using a shared resource. Note that corrensponding Shared Resources project feature should be defined.

Link copied to clipboard
fun String.toId(prefix: String = ""): String

Creates a string satisfying requirements for entity id in TeamCity. Can be used to generate an id from a name.

Link copied to clipboard

Definition of a cloud image for a cloud profile agent cloud profile for VMware vSphere and vCenter in a project.