如何从固定版本的 teamcity 5.1 获取 xml feed?
希望获取刚刚固定的构建的 xml feed。我发现我可以过滤成功/不成功的构建,但找不到按固定过滤的标志/选项。有什么建议吗?
Looking to get an xml feed of just pinned builds. I see that I can filter on successful / unsuccessful builds, but can't find a flag / option to filter by pinned. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不是您所要求的,但正如我在搜索版本 9 的类似内容时发现的这个问题:
在 TeamCity 9 上,您可以轻松访问
https://teamcity.YOURCOMPANY.com/app/rest/builds?locator=pinned:true
文档:https://confluence.jetbrains.com/display/TCD9/REST+API#RESTAPI-BuildLocator
Not what you asked for, but as I found this question when searching for a similar thing for Version 9:
On TeamCity 9, you can easily just access
https://teamcity.YOURCOMPANY.com/app/rest/builds?locator=pinned:true
Documentation: https://confluence.jetbrains.com/display/TCD9/REST+API#RESTAPI-BuildLocator
查看 TeamCity 中的 Rest API
您可以加载列表所有构建:
http://YOURSERVER/httpAuth/app/rest/builds
结果是像这样的内容:
通过查看 href,您可以获得此版本的详细信息。还有一个属性
pinned
可以通过添加 GET 参数来控制构建列表的计数和开始位置,如下所示:
?count=5&start=200
如果如果您希望将其用于特定项目或项目配置,则必须这样做:
使用此 API,您可以检索所有项目。
(使用 http://YOURSERVER/httpAuth/app/rest/projects)
有了这些信息,您可以获取配置。
(示例: http://YOURSERVER/httpAuth/app/rest/projects/id:project3 )
在这里您可以获得有关特定配置的详细信息:
(示例:http://YOURSERVER/httpAuth/app/rest/buildTypes/id:bt17
最后,通过此列表,您可以获得此构建的详细信息:
(示例:http://YOURSERVER/httpAuth/app/rest/builds/id:4144
最后一次调用的结果是这样的:
Have a look at the Rest API from TeamCity
You can load a list of all builds:
http://YOURSERVER/httpAuth/app/rest/builds
The result ist something like this:
By look at the href you can get detailed Info for this Build. And there is an attribute
pinned
The count and the start position of the list of build can you control by adding GET Parameters like this:
?count=5&start=200
If you want it for specific Projects or Project Configuratins you have to go this way:
With this API you can retrieve all Projects.
(use http://YOURSERVER/httpAuth/app/rest/projects)
With this info you can get the Configurations.
(example: http://YOURSERVER/httpAuth/app/rest/projects/id:project3)
Here you get the detail info about a specific configuration:
(example: http://YOURSERVER/httpAuth/app/rest/buildTypes/id:bt17
And finally with this list you can get details of this build:
(example: http://YOURSERVER/httpAuth/app/rest/builds/id:4144
The result of the last call is something like this: