I’m currently working at PSA Peugeot Citroën group, which consider the possibility to use TeamCity as its next continuous integration platform.
We are currently trying to automate the creation of environments in Teamcity for our projects. To do so we use the rest api. I’m developing a rest client based on the jersey client and the Teamcity rest-api (in order to reuse the jaxb binding).
To reach our goal, I had to extend the Teamcity rest api and we want to share this extension with the community.
You can integrate it to the official rest plugin if you wish. This extension contains two parts:
It adds the possibility to create a UserGroup. New URL :
POST XML <group-ref key='Group Key' name='Group Name'/> to : http://teamcity:8111/httpAuth/app/rest/userGroups/
A refactoring of the BuildTypeRef class. Marshaling was ok but unmarshalling wasn’t working. It’s only a refactoring, methods and constructor signature don’t changed.
You will find in attachment a patch file which contains a diff with the 7.0.x branch.
Maybe you want I open an issue for this?