TeamCity 8.1.2 REST API:获取指定生成配置的运行生成

TeamCity 8.1.2 REST API:获取指定生成配置的运行生成,teamcity,teamcity-8.0,Teamcity,Teamcity 8.0,我正在使用TeamCity 8.1.2 REST API,我想检查我的构建配置中是否有正在运行的构建。 要在队列中获取生成,我可以使用以下请求: > http://<tc_address>/app/rest/latest/buildQueue/?locator=buildType:<my_buildTypeId> >http:///app/rest/latest/buildQueue/?locator=buildType: 它返回队列中的生成,但不返回正在运行

我正在使用TeamCity 8.1.2 REST API,我想检查我的构建配置中是否有正在运行的构建。 要在队列中获取生成,我可以使用以下请求:

> http://<tc_address>/app/rest/latest/buildQueue/?locator=buildType:<my_buildTypeId>
>http:///app/rest/latest/buildQueue/?locator=buildType:
它返回队列中的生成,但不返回正在运行的生成。 根据获取运行版本的文档,可以使用此请求:

> http://<tc_address>/app/rest/builds/?locator=buildType:<my_buildTypeId>,running:true
>http:///app/rest/builds/?locator=buildType:,跑步:对
但它不返回构建。我试过了

http://<tc_address>/app/rest/builds/?locator=running:true
http:///app/rest/builds/?locator=running:true

它返回来自其他生成配置的运行生成,但未列出来自我的生成配置的运行生成。

您的API调用是正确的,但似乎缺少某些配置

检查给定问题的以下设置:

-> Go to Build Configuration

    -> Edit Configuration Settings

        -> General Settings

            -> Build options

                -> Enable status widget [Check this checkbox]

之后,检查API调用

启用状态小部件已被检查。我认为它与RESTAPI无关。请检查