在Team City中找不到构建ID

时间:2020-08-18 17:09:21

标签: rest build teamcity

我在Team City中为我的应用程序构建了版本。我需要从Team city检索有关这些构建的一些统计信息,例如代码覆盖率。但是,我什至无法检索某些应用程序的构建ID。

https://teamcity.com/app/rest/buildTypes/id:TemplateModules_Repo/builds/status:SUCCESS,branch:%3Cdefault%3E,tag:data-collector-job/id 

Responding with error, status code: 404 (Not Found).
Details: jetbrains.buildServer.server.rest.errors.NotFoundException: Nothing is found by locator 'status:SUCCESS,branch:<default>,tag:data-collector-job,buildType:(id:TemplateModules_Repo),count:1,state:finished,personal:false,canceled:false,failedToStart:false'.
Could not find the entity requested. Check the reference is correct and the user has permissions to access the entity.

我已手动添加了用于构建此应用程序的标签,但没有帮助。当我在Team City中通过此标签浏览构建时,可以正确找到构建。 与其他应用程序相比,此应用程序的唯一结构差异是命名包含3个单词,我当时认为解析复杂名称可能存在问题,但我不确定这是原因。那是什么原因呢?

0 个答案:

没有答案