terraform-provider-teamcity
terraform-provider-teamcity copied to clipboard
Attach the VCS root to a build configuration.
VCS root can be attached to the project, however in this provider the attachment to a build configuration is impossible.
It seem to be possible in 1.0.1-jeffwecan-fork, check this out https://registry.terraform.io/providers/jeffwecan/teamcity/latest/docs/resources/build_trigger_build_finish
resource "teamcity_vcs_root_git" "vcs" {
name = "Application"
project_id = teamcity_project.project.id
url = "https://github.com/cvbarros/go-teamcity"
branch = "refs/head/master"
}
resource "teamcity_build_config" "build_release" {
project_id = teamcity_project.project.id
name = "Build Release"
step {
type = "command_line"
file = "build.sh"
args = "-t buildrelease"
}
vcs_root {
id = teamcity_vcs_root_git.vcs.id
checkout_rules = ["+:*"]
}
}