【问题标题】:Azure DevOps YAML pipelines BuildApi: is there a way to get the stage dependsOn value?Azure DevOps YAML 管道 BuildApi:有没有办法获得阶段依赖值?
【发布时间】:2021-09-17 20:23:58
【问题描述】:

使用 buildApi.getBuildTimeline() 函数我可以获得构建阶段 (TimelineRecord[]),TimelineRecord.order 似乎没有反映依赖关系 (stage.dependsOn) 图,有没有办法解决阶段' 依赖图?

谢谢,

【问题讨论】:

    标签: azure-pipelines devops


    【解决方案1】:

    很遗憾,dependsOn 目前只能在 YAML 文件中找到。

    有类似的问题:

    https://developercommunity.visualstudio.com/t/timeline-rest-api-should-include-dependson/1361590

    How to determine job dependency graph from Azure DevOps Timelines REST API(此处为解决方法)

    另外,Yaml - Get API无法获取多阶段的 YAML。所以你只能从 repos 中获取 YAML 文件。

    【讨论】:

      猜你喜欢
      • 2022-09-23
      • 1970-01-01
      • 1970-01-01
      • 2020-10-31
      • 2020-01-27
      • 2020-09-15
      • 1970-01-01
      • 1970-01-01
      • 2023-01-05
      相关资源
      最近更新 更多