api - TeamCity REST API : Who broke the build?

标签 api rest teamcity build-server teamcity-8.0

在我们的办公室,我们使用自定义 Geckoboard显示有关 TeamCity 8 构建服务器当前构建状态的信息。

我们使用以下 REST 查询显示最近 checkin /更改:http://teamcity.internal.com:8080/httpAuth/app/rest/changes?project:项目名称&locator=count:10

我们还使用以下 REST 查询计算上次构建被破坏的时间:http://teamcity.internal.com:8080/httpAuth/app/rest/builds?locator=项目:项目名称

但是我们无法将两者联系起来。

换句话说:

  • 用于最近的更改以确定 checkin 是否会导致构建损坏
  • 最后一次构建被破坏确定谁进行了 checkin

最佳答案

基于源码here和文档 here

我相信你想要类似下面的东西

http://teamcity.internal.com:8080/httpAuth/app/rest/changes?locator=build:(status:FAILED,project:ProjectName,lookupLimit:1)

这应该返回与上次失败的构建相关的更改,我尚未测试,因为我不使用 TeamCity。

另请参阅以下内容 StackOverflow question为了获得特定版本的更改。

关于api - TeamCity REST API : Who broke the build?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22326364/

相关文章:

api - JSON错误响应,有条件的疯狂

rest - 如何在 PowerShell 中使用 REST API 在 TFS 中创建错误?

javascript - 使用 tv4 的模式响应始终有效

rest - HTTP GET 设置内部数据,还算 RESTful 吗?

msbuild - Teamcity MSBuild发布输出目录

svn - 使用 TeamCity 进行 Subversion 发布管理

php - API 安全 - 使用 api key secret 、散列、tnonce 等 VS。 SSL证书验证

java - 使用 Tomcat 8.5.9 获取 400 个错误请求

javascript - 从外部系统验证 Dynamics CRM 2016 Rest Web 服务

TeamCity 提供静态 HTML 页面