Is it possible to inherit VCS settings

I am new to TeamCity and about to set up a template for a bunch of builds. Is it possible to create a generic VCS configuration that contains just type of VCS and Authentication Settings? Then each build needs to specify a Fetch URL and a Branch. For me it looks like you need to create a lot of VCS roots repeating the type of VCS and Authentication Settings, which I want to avoid.

2 comments
Comment actions Permalink

Hi,

Yes, it is possible. You can create one VCS root in template and use configuration parameters to specify URL and Branch in build configurations. For example like this in VCS root you can specify %url% instead of concrete URL. Then in the build configuration where this VCS root is used, set actual value for this parameter, by adding configuration parameter with name url and actual URL as a value. Parameter value can also come from template or from the project where this VCS root is used.

0
Comment actions Permalink

Thanks Alina. Works perfect!

0

Please sign in to leave a comment.