Identify the "build configurations" that is using a particular "build configuration template" via rest API
Hi,
I'm trying to identify or list down the build configurations that is a using a specific template. Is there a way to do this via rest API?
e.g. Template1 is used in BuildConfig1, BuildConfig2 and BuildConfig_nth
Please sign in to leave a comment.
Hi,
Yes, this is possible: https://confluence.jetbrains.com/display/TCD18/REST+API#RESTAPI-BuildConfigurationLocator
could you please give an example how to fetch the buildtypes of a particular template
Here is an example of a request to fetch buildtypes that use a specific template.
<teamcity server>/app/rest/buildTypes?locator=template:<Build Template ID>
In case it is helpful to anyone, here is the link to the latest documentation on this subject: https://www.jetbrains.com/help/teamcity/rest-api.html#RESTAPI-ProjectsandBuildConfiguration/TemplatesLists