Is it possible to create a new build configuration from a template using the REST API?

Answered

Is it possible to create a new build configuration from a template using the REST API?
Can I use newBuildTypeDescription to do this by specifying the template Id in the sourceBuildTypeLocator?

2 comments
Comment actions Permalink

This thread answered my question: http://devnet.jetbrains.net/message/5466382#5466382

1. Create blank project: POST /httpAuth/app/rest/projects  projectName as plain text data
2. Create a blank build configuration under the project: POST /httpAuth/app/rest/projects/{locator}/buildTypes buildConfName as plain text data
3. Attach template to the new build configuration: PUT /httpAuth/app/rest/buildTypes/{locator}/template templateId as plain text data

0
Comment actions Permalink

This worked for me using TeamCity 10.

In step 1, you can create it as a child of another project as described here: https://confluence.jetbrains.com/display/TW/REST+API#RESTAPI-Creatinganewproject

0

Please sign in to leave a comment.