Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.14 KB

vcs_root.html.markdown

File metadata and controls

55 lines (39 loc) · 1.14 KB
layout page_title sidebar_current description
teamcity
TeamCity: vcs_root
docs-teamcity-resource-vcs-root
Provides a TeamCity VCS Root resource.

teamcity_vcs_root

Provides a TeamCity VCS Root resource.

Example Usage

# Create a new vcs root
resource "teamcity_vcs_root" "default" {
  name = "default-vcs"

  properties = {
    url    = "https://github.com/paranoidd/teamcity-sdk-go"
    branch = "refs/heads/master"
  }
}

Argument Reference

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 include jetbrains.git, svn, cvs and etc. Defaults to jetbrains.git.
  • project - (Optional) ID of the Project the VCS Root resides within. Defaults to _Root

Attributes Reference

The following attributes are exported:

  • id - The VCS Root ID
  • name - The name of the VCS Root
  • project - The project of the VCS Root

Import

VCS Roots can be imported using the id, e.g.

$ terraform import teamcity_vcs_root.default Root_DefaultVcs