Can you use the city restus api command to get the plan branch names?

I am trying to create a command line application to extract artifacts from teamcity. This is normal if I know the branch I want to get, but first I want to show a list of all available branches.

This is what I need to get the latest build when I know the branch

http://<TC>/guestAuth/app/rest/builds/buildType:<BUILD-TYPE>,branch:<BRANCH>

But if I take it ,branch:<BRANCH>, it will only display one assembly, which is the last in the default branch that I think.

What I can not find is the URL to get the branches for a specific plan. I can return to VCS to get branches that way, but this should be available.

I also want this information to delete branches that were later merged.

+4
source share
1

http://<TC>/guestAuth/app/rest/buildTypes/id:<BUILD_TYPE>/branches
+7

All Articles