TeamCity VCS Roots
TeamCity VCS Roots
Section titled โ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