SvnVcsRoot

open class SvnVcsRoot : VcsRoot

A Subversion VCS root

Example. Defines a Subversion VCS root MyVcsRoot with authentication by an SSH key and registers it in the project and a build configuration. The VCS Root fully supports SVN externals.

project {
...
vcsRoot(MyVcsRoot)

buildType {
id = "MyBuild"
name = "MyBuild"

vcs {
root(MyVcsRoot)
}
...
}
...
}

object MyVcsRoot : SvnVcsRoot({
name = "Non-migrated libraries"
url = "svn+ssh://svn@my-host.my.net/home/svn/repo"
userName = "svn"
customSshKey = "/home/tc/.ssh/id_rsa"
externalsMode = SvnVcsRoot.ExternalsMode.FULL_SUPPORT

pollInterval = 600 // seconds
})























Constructors

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

Types

Link copied to clipboard

Subversion externals mode

Link copied to clipboard

A Subversion working copy format

Properties

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

Custom Subversion configuration directory to use

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

A path to SSH key on the TeamCity server machine to use

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

Whether TeamCity should accept non-trusted SSL certificates from Subversion server

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

If true, TeamCity will always run svn revert before updating sources

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

A mode of externals support

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
var labelingMessage: <Error class: unknown class>

A message to use for labeling

Link copied to clipboard
var labelingRules: <Error class: unknown class>
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 passphrase: <Error class: unknown class>

A passphrase for SSH key if it is encrypted

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

A password for Subversion connection

Link copied to clipboard

VCS root polling interval, in seconds

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

SSH port to use

Link copied to clipboard

VCS type

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

Name of the uploaded SSH key to use for connections via SSH.

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

Subversion server URL

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

Whether the default Subversion configuration directory should be used

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

A username for Subversion 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.

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

Subversion working copy format to use

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