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.
source
share