【发布时间】:2020-06-15 00:21:02
【问题描述】:
我正在使用 TeamCity 8.1.2 REST API,我想检查我的构建配置中是否有正在运行的构建。
要在队列中构建,我可以使用以下请求:
> http://<tc_address>/app/rest/latest/buildQueue/?locator=buildType:<my_buildTypeId>
它返回队列中的构建,但不返回正在运行的构建。
根据文档https://confluence.jetbrains.com/display/TCD8/REST+API 来运行构建,可以使用此请求:
> http://<tc_address>/app/rest/builds/?locator=buildType:<my_buildTypeId>,running:true
但它不返回任何构建。我试过了
http://<tc_address>/app/rest/builds/?locator=running:true
从其他构建配置返回正在运行的构建,但未列出来自我的构建配置的正在运行的构建。
【问题讨论】:
标签: teamcity teamcity-8.0