Is it possible to automate the creation of new Build Configurations?

We're currently auditioning TeamCity to replace CCNet. As a consulting company with lots of small projects going on, we're looking to automate the creation of builds for new projects. We currently have a REST wrapper around CCNet to add xml config nodes, and I was hoping for some way to do this through the OpenAPI, but I'm not seeing much in that regard. Anyone done this?

TIA

2 comments

You can create new projects with help of ProjectManager service (ProjectManager#createProject()), build configurations are created within a project: see SProject#createBuildType() methods. If you wish you can register your own web controller and accept requests to create new build configurations via HTTP. For this take a look at WebControllerManager#registerController() method.

--
Pavel Sher

0

And do not forget to call SProject#persist() method to persist project with build configurations on disk.

--
Pavel Sher

0

Please sign in to leave a comment.