Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach the VCS root to a build configuration. #111

Open
edikmkoyan opened this issue Apr 19, 2021 · 0 comments
Open

Attach the VCS root to a build configuration. #111

edikmkoyan opened this issue Apr 19, 2021 · 0 comments

Comments

@edikmkoyan
Copy link

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 = ["+:*"]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant