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.

3 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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

0
Comment actions Permalink

You can use the following request to get info about about build congiguration:

http://localhost:8111/httpAuth/app/rest/projects/<project_id>/buildTypes/id:<Build_configuration_id>

If build configuration is based on template there will be <template /> tag.

0

Please sign in to leave a comment.