Hi,
We use the dag: true
feature heavily. I’m interested in profiling our build steps, but in a way that incorporates knowledge of the step dependencies. For example, if step C depends on step B and step A, the step dependency information can tell us that step C is on the critical path.
I’m aware of the adding “/dag” to the build URLs, but that gets a visual HTML response, whereas I’d like a more immediately consumable representation. I tried looking through the JSON representation of a build, but I didn’t find anything that expressed which jobs any particular job was dependent on.
Does this information already exist?
If not, could we do something like adding “/dag.json” to the URL, or some REST endpoint to get something like:
{
"nodes": ["A", "B", "C"],
"edges": [
["A", "C"],
["B", "C"]
]
}
(this is just an example schema for purposes of illustration, real schema can be something else)
Thanks!
Andrew