【问题标题】:How to get status of executing build steps in teamcity?如何获取在 teamcity 中执行构建步骤的状态?
【发布时间】:2017-07-19 23:52:02
【问题描述】:

我使用以下 API 调用来获取特定构建配置可用的步骤列表,如何检查运行构建时已完成步骤的状态?

http://localhost:8111/httpAuth/app/rest/buildTypes/GreenHouse_Sit/steps

【问题讨论】:

    标签: rest build teamcity


    【解决方案1】:

    似乎你能得到的最多的是完整性和当前阶段文本的百分比。后一个在这里很有趣,因为它以 Step X/Y 字符串开头(执行第 X 步时),因此您可以轻松处理它:

    http://teamcity:8111/httpAuth/app/rest/builds/?locator=buildType:BUILD_TYPE_ID,state:running&fields=build(running-info(currentStageText,percentageComplete))`
    

    【讨论】:

      猜你喜欢
      • 2013-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多