Svn Vcs Root
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
})
Types
Properties
A path to SSH key on the TeamCity server machine to use
Whether TeamCity should accept non-trusted SSL certificates from Subversion server
If true, TeamCity will always run svn revert before updating sources
A mode of externals support
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).
A message to use for labeling
Labeling patterns to use
Helper for creating references to parameters of this VCS root
A passphrase for SSH key if it is encrypted
VCS root polling interval, in seconds
Name of the uploaded SSH key to use for connections via SSH.
Whether the default Subversion configuration directory should be used
Subversion working copy format to use
Functions
Copies parameters of this object to the specified target
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.
Validates this object and reports found errors to the provided consumer