layout | page_title | sidebar_current | description |
---|---|---|---|
teamcity |
TeamCity: vcs_root |
docs-teamcity-resource-vcs-root |
Provides a TeamCity VCS Root resource. |
Provides a TeamCity VCS Root resource.
# Create a new vcs root
resource "teamcity_vcs_root" "default" {
name = "default-vcs"
properties = {
url = "https://github.com/Cardfree/teamcity-sdk-go"
branch = "refs/heads/master"
}
}
The following arguments are supported:
name
- (Required) Name of the VCS Root.properties
- (Required) The Properties for the VCS Root.provider
- (Optional) The VCS Provider. Options includejetbrains.git
,svn
,cvs
and etc. Defaults tojetbrains.git
.project
- (Optional) ID of the Project the VCS Root resides within. Defaults to_Root
The following attributes are exported:
id
- The VCS Root IDname
- The name of the VCS Rootproject
- The project of the VCS Root
VCS Roots can be imported using the id
, e.g.
$ terraform import teamcity_vcs_root.default Root_DefaultVcs