jetbrains.buildServer.configs.kotlin.v2019_2 / VcsRoot / <init>

<init>

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

Creates a VCS root and initializes it with the specified init block

Parameters

init - initialization block

See Also

VcsRoot

VcsRoot()

A base class representing TeamCity VCS root.

To appear in UI a VCS root should be registered in a project using the vcsRoot method.

VCS root can be attached to a build configuration or template with specified checkout rules using the root() method in the vcs() block.

The id, name, and type are mandatory properties for a valid VCS root (id can be omitted if it matches the class name).

VCS root parameters can be defined via the param method. TeamCity vcs plugins extend this class and provide a typed DSL which makes editing parameters easier.

See Also

Project

BuildType

Template