Package jetbrains.buildServer.configs.kotlin

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
open class AmazonEC2CloudImage : CloudImage

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

Link copied to clipboard
open class AmazonEC2CloudProfile : CloudProfile

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

Link copied to clipboard
class ArtifactDependency
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
open class BranchRemoteRunTrigger : Trigger

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

Link copied to clipboard
open class BuildFeature : Parametrized, Validatable

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

Link copied to clipboard
class BuildFeatures : Validatable
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
open class BuildStep : Parametrized, Validatable

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

Link copied to clipboard
class BuildStepConditions : Requirements
Link copied to clipboard
class BuildSteps : Validatable
Link copied to clipboard
open class BuildType : BuildTypeSettings, Validatable

Represents TeamCity build configuration.

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
open class BuildTypeSettings : Validatable, IdOwner

Contains common settings between BuildType and Template

Link copied to clipboard
sealed class ChartsOrder : ProjectFeature

Abstact class for feature for specifying Custom Charts order.

Link copied to clipboard
enum CheckoutMode : Enum<CheckoutMode>

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

Link copied to clipboard
class Cleanup
Link copied to clipboard
enum CleanupLevel : Enum<CleanupLevel>

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

Link copied to clipboard
abstract class CloudImage : ProjectFeature, Validatable
Link copied to clipboard
abstract class CloudProfile : ProjectFeature, Validatable
Link copied to clipboard
class CompoundDelegateProvider<T : CompoundParam<T>>(val customParamName: String? = null)
Link copied to clipboard
abstract class CompoundParam<V>(val value: String?) : Parametrized
Link copied to clipboard
class CompoundParamDelegate<T : CompoundParam<T>>(paramName: String) : ParameterDelegate<T>
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
sealed class CustomChart : ProjectFeature

Abstact class for Project and Build Type related custom charts.

Link copied to clipboard
typealias DelegateProvider<T> = <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Link copied to clipboard
class Dependencies
Link copied to clipboard
class Dependency(var buildTypeId: IdOwner)

Represents dependency of one build on another

Link copied to clipboard
interface DependencyConstructor
Link copied to clipboard
object DslContext

Context of DSL execution

Link copied to clipboard
interface ErrorConsumer

Consumes validation errors

Link copied to clipboard
enum FailureAction : Enum<FailureAction>

Action in case of snapshot dependency failure.

Link copied to clipboard
open class FailureCondition : BuildFeature

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

Link copied to clipboard
class FailureConditions : Validatable
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
open class IdeaDuplicates : IdeaSettingsBasedRunner

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
open class IdeaInspections : IdeaSettingsBasedRunner

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

Link copied to clipboard
open class IdeaRunner : IdeaSettingsBasedRunner

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

Link copied to clipboard
abstract class IdeaSettingsBasedRunner : BuildStep
Link copied to clipboard
class IdGenerator
Link copied to clipboard
interface IdOwner
Link copied to clipboard
open class KubernetesCloudImage : CloudImage

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

Link copied to clipboard
open class KubernetesCloudProfile : CloudProfile

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

Link copied to clipboard
open class MatrixFeature : BuildFeature

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
class Options : Parametrized
Link copied to clipboard
class ParallelStageImpl(val project: Project?) : CompoundStageImpl, CompoundStage, DependencyConstructor
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)
Link copied to clipboard
enum ParameterDisplay : Enum<ParameterDisplay>

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
open class ParametrizedWithType : Parametrized, Validatable

Allows to add parameters to project, build configuration, or template

Link copied to clipboard
open class Project : Validatable, IdOwner

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
open class ProjectFeature : Parametrized, Validatable

Represents project-level feature

Link copied to clipboard
class ProjectFeatures : Validatable

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
enum PublishMode : Enum<PublishMode>

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
open class RemoteParameter : Parametrized, Validatable

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
open class Requirements
Link copied to clipboard
enum RequirementType : Enum<RequirementType>
Link copied to clipboard
enum ReuseBuilds : Enum<ReuseBuilds>
Link copied to clipboard
class SequentialStageImpl(val project: Project?) : CompoundStageImpl, CompoundStage, DependencyConstructor
Link copied to clipboard
open class SharedResource : ProjectFeature

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
open class SharedResources : BuildFeature

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)
Link copied to clipboard
class SingleParamDelegate<T>(paramName: String, val mapping: Map<T, String?>? = null) : ParameterDelegate<T>
Link copied to clipboard
class SnapshotDependency
Link copied to clipboard
typealias SnapshotDependencyOptions = SnapshotDependency.() -> Unit
Link copied to clipboard
interface Stage
Link copied to clipboard
object StageFactory
Link copied to clipboard
annotation class TeamCityDsl
Link copied to clipboard
open class Template : BuildTypeSettings, Validatable

Represents TeamCity build template.

Link copied to clipboard
open class Trigger : Parametrized, Validatable

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

Link copied to clipboard
class TriggerBuildParameters : ParametrizedWithType

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

Link copied to clipboard
class Triggers : Validatable
Link copied to clipboard
interface Validatable
Link copied to clipboard
open class VcsRoot : Parametrized, Validatable, IdOwner

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
class VcsSettings

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

Link copied to clipboard
open class VMwareVSphereCloudImage : CloudImage

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

Link copied to clipboard
open class VMwareVSphereCloudProfile : CloudProfile

Functions

Link copied to clipboard
fun ProjectFeatures.amazonEC2CloudImage(init: AmazonEC2CloudImage.() -> Unit = {})

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

Link copied to clipboard
fun ProjectFeatures.amazonEC2CloudProfile(init: AmazonEC2CloudProfile.() -> Unit = {})

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

Link copied to clipboard
fun Triggers.branchRemoteRun(init: BranchRemoteRunTrigger.() -> Unit = {})

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

Link copied to clipboard
fun ProjectFeatures.buildTypeChartsOrder(init: ChartsOrder.() -> Unit = {})

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

Link copied to clipboard
fun ProjectFeatures.buildTypeCustomChart(init: CustomChart.() -> Unit = {})

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.

fun ArtifactDependency.copy(): ArtifactDependency

Copies the receiver artifact dependency

fun BuildFeatures.copy(): BuildFeatures

Copies the receiver build features

fun BuildSteps.copy(): BuildSteps

Copies the receiver build steps

fun Cleanup.copy(): Cleanup

Copies the receiver cleanup

fun Dependencies.copy(): Dependencies

Copies the receiver dependencies

fun Dependency.copy(): Dependency

Copies the receiver dependency

fun FailureConditions.copy(): FailureConditions

Copies the receiver failure conditions

fun ProjectFeatures.copy(): ProjectFeatures

Copies the receiver project features

fun Requirements.copy(): Requirements

Copies the receiver requirements

fun SnapshotDependency.copy(): SnapshotDependency

Copies the receiver snapshot dependency

fun Triggers.copy(): Triggers

Copies the receiver triggers

fun VcsSettings.copy(): VcsSettings

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
fun <T : BuildTypeSettings> T.copySettingsTo(target: T): T

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

fun BuildFeatures.copyTo(target: BuildFeatures): BuildFeatures

Copies the receiver build features to the specified target

fun BuildSteps.copyTo(target: BuildSteps): BuildSteps

Copies the receiver build steps to the specified target

fun Cleanup.copyTo(target: Cleanup): Cleanup

Copies the receiver cleanup to the specified target

fun Dependencies.copyTo(target: Dependencies): Dependencies

Copies the receiver dependencies to the specified target

fun FailureConditions.copyTo(target: FailureConditions): FailureConditions

Copies the receiver failure conditions to the specified target

fun ProjectFeatures.copyTo(target: ProjectFeatures): ProjectFeatures

Copies the receiver project features to the specified target

fun Requirements.copyTo(target: Requirements): Requirements

Copies the receiver requirements to the specified target

fun Triggers.copyTo(target: Triggers): Triggers

Copies the receiver triggers to the specified target

fun VcsSettings.copyTo(target: VcsSettings): VcsSettings

Copies the receiver vcs settings to the specified target

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

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
fun BuildSteps.ideaInspections(init: IdeaInspections.() -> Unit = {})

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
fun ProjectFeatures.kubernetesCloudImage(init: KubernetesCloudImage.() -> Unit = {})

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

Link copied to clipboard
fun ProjectFeatures.kubernetesCloudProfile(init: KubernetesCloudProfile.() -> Unit = {})

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

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
fun prepareRelativeProject(project: Project)
Link copied to clipboard
fun project(project: Project)
fun project(init: Project.() -> Unit)

Defines TeamCity project

Link copied to clipboard
fun ProjectFeatures.projectChartsOrder(init: ChartsOrder.() -> Unit = {})

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

Link copied to clipboard
fun ProjectFeatures.projectCustomChart(init: CustomChart.() -> Unit = {})

Adds a project-level Custom Chart

Link copied to clipboard
fun relativeIdCannotBeUsed(description: String, id: Id?): String
Link copied to clipboard
fun relativeIdInAbsoluteHierarchy(id: Id?): Boolean
Link copied to clipboard
fun reportRelativeIds(project: Project)
fun reportRelativeIds(project: Project, rootProject: Boolean)
Link copied to clipboard
fun <T> runPrivileged(function: () -> T): T
Link copied to clipboard
fun Project.sequential(block: CompoundStage.() -> Unit): CompoundStage
Link copied to clipboard
fun ProjectFeatures.sharedResource(init: SharedResource.() -> Unit)

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
fun BuildFeatures.sharedResources(init: SharedResources.() -> Unit = {})

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
fun ProjectFeatures.vmwareVSphereCloudImage(init: VMwareVSphereCloudImage.() -> Unit = {})

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

Link copied to clipboard
fun ProjectFeatures.vmwareVSphereCloudProfile(init: VMwareVSphereCloudProfile.() -> Unit = {})

Properties

Link copied to clipboard
var checkMissingUuids: Boolean = false

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 ID_GENERATORS_FOR_TEMPLATES: <ERROR CLASS>
Link copied to clipboard
val TQ: String

Used to escape triple quotes inside multi-line strings

Link copied to clipboard
var version: String?

Version of TeamCity in which kotlin code was generated.