Is it possible to extend VCS root?

Hi All,

I have create a VCS root and most of its content can be shared by several configration builds. But one attribute of this VCS root will be different for each build configuration.

I create a template for thest build configurations and attach theVCS root to the template so that it is attached to all build confiugrations automatically. But when I edit the VCS root in each build configuration's setting page, the shared VCS root is changed. So I must create new VCS root for each build configuration, which brings many redudant work.

So, is it possbiel to create a VCS root by extending from a parent VCS root so that most content can be reused?

Thanks.

4 comments
Comment actions Permalink

Hi

In version 6.5 we added parameterized VCS roots. Now server address can be specified as something like server/%branch%, and the value of branch parameter is defined differently in each configuration.

Michael

0
Comment actions Permalink

It is a really good enhancement, but my current version is 6.0.3 so cannot enjoy this enhancment until upgrading to 6.5.

Is there a workaround for that? Thanks a lot.

0
Comment actions Permalink

Technically, we support direct modification of configuration files in <TeamCity Data Directory>/config/
You could clone VCS root in vcs-roots.xml, assign new id, and update id reference in project-config.xml. But this way is prone to errors, and in in case of ID duplicates it can cause weird issues later.

Michael

0
Comment actions Permalink

Thanks. To avoid unexpected issue, I prefer to upgrad to TC6.5.

0

Please sign in to leave a comment.