Skip to content

TeamCity VCS Roots

VCS Roots define repository URL, branch, and authentication.

Kotlin DSL example

vcsRoot(GitVcsRoot {
id("RepoRoot")
name = "bankyblueprints"
url = "https://git.example.com/BankyTech/bankyblueprints.git"
branch = "refs/heads/main"
})

Tips

  • Prefer tokens over passwords
  • Limit fetch depth when possible
  • Use branch specification for MR/PR builds