TfsVcsRoot

open class TfsVcsRoot : VcsRoot

TFS VCS root

Example. Adds a TFS VCS root with the TeamCity server user account access to Azure DevOps.

project {
vcsRoot(TFSRoot)
// ...
}

object TFSRoot : TfsVcsRoot({
name = "TFSRoot"
url = "https://dev.azure.com/organization"
root = "${'$'}/path"
})








Example. Adds a TFS VCS root with specified Azure DevOps credentials (token) enforced overwriting all files in the workspace while Agent-Side Checkout and custom minimum polling interval in seconds.

project {
vcsRoot(TFSRoot)
// ...
}

object TFSRoot : TfsVcsRoot({
name = "TFSRoot"
pollInterval = 120
url = "https://dev.azure.com/organization"
root = "${'$'}/path"
userName = "username"
password = "credentialsJSON:******"
forceOverwrite = true
})












Constructors

Link copied to clipboard
constructor(init: TfsVcsRoot.() -> Unit)
constructor()

Properties

Link copied to clipboard
var forceOverwrite: <Error class: unknown class>

When set to true, TeamCity will call TFS to update workspace rewriting all files

Link copied to clipboard
open override var id: Id?

VCS root id. It appears in the web UI and is used in urls. If the VCS root has a uuid specified, then the id can be changed at any time. If uuid is omitted, then TeamCity treats a VCS root with a changed id as a new VCS root, all data associated with the old root will be lost (e.g. a commits graph). Id can also be used by some settings, e.g. as a part of parameter reference. If you change the id, you should find all its occurrences in the current project and change them too. Id must be unique across all VCS roots on the server. If id is missing, it will be generated from the class name (if the class is not from the jetbrains.buildServer.configs.kotlin package).

Link copied to clipboard

VCS root name

Link copied to clipboard

Helper for creating references to parameters of this VCS root

Link copied to clipboard
Link copied to clipboard
var password: <Error class: unknown class>

A password for TFS connection

Link copied to clipboard

VCS root polling interval, in seconds

Link copied to clipboard
var root: <Error class: unknown class>

TFS path to checkout. Format: $/path.

Link copied to clipboard

VCS type

Link copied to clipboard
var url: <Error class: unknown class>

URL format:

Link copied to clipboard
var userName: <Error class: unknown class>

A username for TFS connection

Link copied to clipboard

VCS root uuid. TeamCity uses it to identify the VCS root. If uuid changes, TeamCity considers it to be a new entity. If uuid is missing, it is reconstructed from VCS root id. Uuid must be unique across all entities on the server.

Functions

Link copied to clipboard
fun booleanParameter(customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): <Error class: unknown class><Parametrized, <Error class: unknown class><Parametrized, T?>>
Link copied to clipboard
fun clear()
Link copied to clipboard
fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): <Error class: unknown class><Parametrized, <Error class: unknown class><Parametrized, T?>>
Link copied to clipboard
fun <T : Parametrized> copyParamsTo(target: T): T

Copies parameters of this object to the specified target

Link copied to clipboard
open fun create(): VcsRoot

Creates an instance of this VCS root 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.

Link copied to clipboard
fun doubleParameter(customName: String? = null): <Error class: unknown class><Parametrized, <Error class: unknown class><Parametrized, T?>>
Link copied to clipboard
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): <Error class: unknown class><Parametrized, <Error class: unknown class><Parametrized, T?>>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun findRawParam(paramName: String): Parameter?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun hasParam(paramName: String): Boolean
Link copied to clipboard
fun id(id: String)

Sets the id to the specified value. Type of the id depends on the context in which DSL is executed: it is RelativeId when DSL context is relative, otherwise it is AbsoluteId.

Link copied to clipboard
fun intParameter(customName: String? = null): <Error class: unknown class><Parametrized, <Error class: unknown class><Parametrized, T?>>
Link copied to clipboard
fun param(name: String, value: String)

Adds parameter with specified name and value

Link copied to clipboard
fun removeRawParam(paramName: String)
Link copied to clipboard
open fun stringParameter(customName: String? = null): <Error class: unknown class><Parametrized, <Error class: unknown class><Parametrized, T?>>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun validate(consumer: ErrorConsumer)

Validates this object and reports found errors to the provided consumer