How to get information about the dependency graph in a pipeline

My question is very simple:

I want to process information about jobs and pipelines of a project.

I can get that information (length of job, ref name, etc. ) using the gitlab api.

Unfortunatly I cannot get information about which jobs need which other jobs…

I’m looking for the information that you see in the UI when visualizing the dependencies between jobs in the pipeline view…

I need that to create the critical path of a pipeline, see where the bottleneck is…

how can i get this information without parsing the gitlab-ci file?

1 Like