Azure DevOps YAML 管道 BuildApi:有没有办法获得阶段 dependsOn 值?

Azure DevOps YAML pipelines BuildApi: is there a way to get the stage dependsOn value?

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

谢谢,

很遗憾,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。所以你只能从仓库中获取 YAML 文件。