open class GitVcsRoot : VcsRoot
Git VCS root
enum class AgentCleanFilesPolicy
Specifies flags for the "git clean" command during agent-side checkout and defines which files will be removed. |
|
enum class AgentCleanPolicy
Specifies when the "git clean" command should be executed in case of agent-side checkout |
|
sealed class AuthMethod : CompoundParam |
|
enum class CheckoutSubmodules
Submodules checkout mode |
|
enum class UserNameStyle
Defines how TeamCity retrieves VCS username from git commit. When the git config contains the following |
GitVcsRoot(init: GitVcsRoot.() -> Unit = {}, base: GitVcsRoot? = null) |
var agentCleanFilesPolicy: AgentCleanFilesPolicy?
Specifies which files should be removed when "git clean" command is executed during agent-side checkout. |
|
var agentCleanPolicy: AgentCleanPolicy?
Specifies when the "git clean" command should be executed in case of agent-side checkout |
|
var agentGitPath: String?
Custom path to git executable on the build agent machine |
|
var authMethod: AuthMethod?
VCS Root authentication method |
|
var branch: String?
The default branch name |
|
var branchSpec: String?
Branch specification to use in VCS root |
|
var checkoutSubmodules: CheckoutSubmodules?
Whether VCS root should include changes in submodules and check their sources for build. By default submodules are checked out. |
|
var pushUrl: String?
Custom repository push url. If not specified then the url specified in the url property is used for push operations. |
|
var serverSideAutoCRLF: Boolean?
Whether TeamCity should convert line-endings of all text files to CRLF during server-side checkout. By default false. |
|
var url: String?
Repository url |
|
var useMirrors: Boolean?
When this option is enabled, TeamCity creates a separate clone of the repository on each agent and uses it in the checkout directory via git alternates. This make agent-side checkout faster. By default true. |
|
var useTagsAsBranches: Boolean?
When enabled tags matched by branch specification will be shown in UI as regular branches. By default false. |
|
var userForTags: String?
A username for tag/merge operations in this VCS root. Format: Username |
|
var userNameStyle: UserNameStyle?
Defines how TeamCity retrieves VCS username from git commit. |
var extId: String
VCS root external id. It appears in web UI and is used in urls. Can be changed at any time. But be aware that some settings use it, e.g. as a part of parameter reference. If you change the extId, you should find all its occurrences in the current project and change them too. |
|
var name: String
VCS root name |
|
var pollInterval: Int?
VCS root polling interval |
|
var type: String
VCS type |
|
var uuid: String
VCS root uuid. It is mandatory, TeamCity uses it to identify entities. If root's uuid changes, TeamCity considers it to be a new VCS root. |
fun anonymous(): Anonymous
Anonymous repository access |
|
fun customPrivateKey(init: CustomPrivateKey.() -> Unit = {}): CustomPrivateKey
SSH key on the specified path. Supported only for server-side checkout. Switch to uploaded SSH key if you want to use an agent-side checkout. |
|
fun defaultPrivateKey(init: DefaultPrivateKey.() -> Unit = {}): DefaultPrivateKey
Default SSH key found on the machine. If you use an agent-side checkout, then this key should also be available on the build agent machines. Often it is easier to use the uploaded SSH key. |
|
fun password(init: Password.() -> Unit = {}): Password
Password authentication |
|
fun uploadedKey(init: UploadedKey.() -> Unit = {}): UploadedKey
Uploaded SSH key with the specified name. |