Know if a project have builds through the REST API
When I'm getting the builds for a project, it recursively.
I would like to only get the direct builds.
The original problem being that I'm browsing through my projects and I want to get the builds for each. It currently seems imposible.
Please sign in to leave a comment.
Hi Henri,
It is not possible in TeamCity now. You can get the list of build configurations in project: http://localhost:8111/httpAuth/app/rest/projects/HelloWorld/buildTypes/ and get builds for each of build configuration.
Please feel free to create feature request in our tracker.
I've created a feature request.
Your idea can be a workaround.
Is there a way to know on which template the build type is based? Some field?
Thanks
You can use the following request to get info about about build congiguration:
If build configuration is based on template there will be <template /> tag.