您可以使用Team City Rest API获取计划分支名称吗? [英] Can you use the team city rest api to fetch plan branch names?

查看:64
本文介绍了您可以使用Team City Rest API获取计划分支名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个命令行应用程序,以从teamcity获取工件.如果我知道我想要获得的分支,但我想先显示所有可用分支的列表,那就很好了.

I'm trying to build a command line app to fetch artifacts from teamcity. This is fine if I know the branch I want to get but I want to show a list of all the available branches first.

这是我知道分支后必须获取的最新版本

This is what I have to fetch the latest build when I know the branch

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

但是,如果我取消了,branch:<BRANCH>,它只会显示一个版本,这是我认为的默认分支上的最新版本.

But if I take the ,branch:<BRANCH> off it only shows one build which is the latest on the default branch I think.

我找不到URL来获取特定计划的分支.我可以回到VCS以这种方式获取分支,但这应该可用.

What I can't find is a URL to get the branches on a particular plan. I can go back to the VCS to get the branches that way but this should be available.

我还希望该信息删除以后合并的分支.

I'll also want this information to delete branches which have been merged later too.

推荐答案

很难找到

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

这篇关于您可以使用Team City Rest API获取计划分支名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆