我使用下面的API调用来获取特定构建配置可用的步骤列表,如何检查在运行构建时完成的步骤的状态?
http://localhost:8111/httpAuth/app/rest/buildTypes/GreenHouse_Sit/steps
答案 0 :(得分:0)
似乎你能得到的最多只是完整性和当前阶段文本的百分比。后者很有趣,因为它以Step X/Y
字符串开头(执行第X步时),因此您可以轻松处理它:
http://teamcity:8111/httpAuth/app/rest/builds/?locator=buildType:BUILD_TYPE_ID,state:running&fields=build(running-info(currentStageText,percentageComplete))`