How does one create a branch in TeamCity for multiple VCS configurations?

439 views Asked by At

Lets assume for a moment you have a project with 20+ VCS entries consisting of SVN and GIT repositories. Each has been configured and connectivity works.

The same project consists of numerous build configurations with artifact and snapshot dependencies. For example, there may be one for building the source from all the VCS repositories and upon success, create a tag/label in each repo with the build number. Another configuration, dependent upon the artifacts produced by the build, may deploy the binaries to one or more staging servers, and yet another may run automated acceptance tests against the deployed system. This process may repeat for testing performance, security and so forth.

Finally when all the build configurations completed, there is one to create a release branch (e.g. release-1.2.3) in each VCS repository. This is usually triggered manually once a release cycle.

enter image description here

Currently I'm running a script to create the branch in each repository and if needed (as with Git) push it to the origin server. The problem is that I have to maintain the list of repositories in several locations and this is rather error prone, especially when it comes to security.

In essence, I'd like to do something similar as the VCS Labeller, except that I'd like to create a branch in each VCS repo.

Short from having to write a custom plugin, how does one use the VCS information to create and push a branch to each repo?

0

There are 0 answers