I need to automate the following process:
1. Create a branch in perforce
2. Create TeamCity VCS root pointing to new branch
3. Clone existing TeamCity build config and modefy it:
3.1 Attach to VCS root created in #2
3.2 Update build number format and reset counter
Does teamcity provide API allowing to do #2 - #3.2?
Why is it required: in the project, I'm working on, I have to support up to 3 versions. E.g. if I'm working on 2.10 version it means that version 2.9 is currently in preProd and 2.8 is in Prod env. I'd like to avoid manual creation of build config each time I create new branch.
Thanks in advance