Pipeline: Support for DependencyGraph

31 views
Skip to first unread message

Sverre Moe

unread,
Nov 7, 2016, 7:26:58 AM11/7/16
to Jenkins Users
Dependency Graph is very useful to display any upstream and downstream dependencies. However with Pipeline it seems no longer an option.

Is there any plans for DependencyGraph pipeline support with WorkflowMultiBranchProject? Since DependencyGraph can only work with AbstractProject, and the closest inherited class between them is AbstractItem.

In my Pipeline script I parse the RPM spec files (looking for BuildRequirements) of all Jenkins Multibranch Pipeline jobs in order to create a list of upstream and downstream dependencies. This in order to trigger builds, as the Pipeline equivalent of build triggers (Build other projects).

An ugly hack: Keep duplicate FreestyleProject of all Multibranch projects. Update the build triggers of a FreestyleProject from a running pipeline build.
The FreeStyleProject does not need to do anything actually. It is just there to support DependencyGraph.

Sverre Moe

unread,
Apr 10, 2018, 10:00:55 AM4/10/18
to Jenkins Users
Find my self in desperate need of a DependencyGraph class to manage my build transitive dependencies, called from my pipeline script.
I really hope JENKINS-29913 will be worked on soon.

Is there any project on GitHub which have tried to implement something similar to DependencyGraph that would be usable on pipeline builds. I have already started to look into creating a DependencyGraph class for my shared-library, but was hoping to perhaps save some time if there is some code I could reuse.
Reply all
Reply to author
Forward
0 new messages