How to dynamically create an SVN branch

I am building an extension in TC that allows users to quickly add builds.

Users want to be able to add a branch build.  I now have the basic functionality sorted for creating builds on the fly, put I am not sure how I can create a branch build on the fly and ensure that the branch gets added in SVN.

So for example, say I have built the following builds:

BuildX
1.004
1.005
1.006
1.007

I may want to 'branch' and build 1.006 as thats the one chosen for release.  Any clues on an approach here?

Thanks in advance

p.s. I am on TC7.1 build 23907

3 comments
Comment actions Permalink

i've been attempting to automate the branch process as well. i fee like i am almost there using the REST API. however, i seem to be stuck on creating the VCS-Roots for the new project.

the new project was created successfully by copying an existing project without sharing the vcs-roots.

    Copy a project: POST XML <newProjectDescription name='Project Name' sourceProjectLocator='id:project2' copyAllAssociatedSettings='true' shareVCSRoots='false'/> to http://teamcity:8111/httpAuth/app/rest/projects



but now this project does not seem to have VCS-Roots associated with it. and i am unable to figure out how to add them with the REST API. i see the following in the documentation.

    Create a new VCS root: POST VCS rot XML (the one like retrieved for a GET request for VCS root details) to http://teamcity:8111/httpAuth/app/rest/vcs-roots



but i am not sure how to associate this new VCS root with the newly copied project.

i'm hoping i am missing a simple step somewhere and can be righted easily.

thanks.
0
Comment actions Permalink

George,

Seems you have duplicated the question in a separate thread: http://devnet.jetbrains.net/message/5472031#5472031
Let's handle it there, then.

0
Comment actions Permalink

Stuart,

It's been a while since your posintg. Sorry for not replying to it.

Have you managed to build a solution? Do you have any unresolved questions?

0

Please sign in to leave a comment.