Miguel Lacouture
Miguel Lacouture

Reputation: 249

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

Using the buildApi.getBuildTimeline() function I can get the build stages (TimelineRecord[]), the TimelineRecord.order doesn't seem to reflect the dependency (stage.dependsOn) graph, is there a way to resolve the stages' dependency graph?

thanks,

Upvotes: 0

Views: 365

Answers (1)

unknown
unknown

Reputation: 7473

Unfortunately, dependsOn can only be found in YAML file for now.

There are the similar issues:

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

How to determine job dependency graph from Azure DevOps Timelines REST API (workaround here)

In addition, the Yaml - Get API can't get the YAML of muti-stages. So you could only get YAML file from repos.

Upvotes: 1

Related Questions