-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to extract the edges in the dependency graph via groovy? #31
Comments
Hello, In the groovy console, you can access the graph starting from a project, using this code:
In the provider set you can "pick" edge provider types from here: https://github.com/jenkinsci/depgraph-view-plugin/tree/master/src/main/java/hudson/plugins/depgraph_view/model/graph/edge |
@guidograzioli Thanks, this is what exactly I was looking for. Let me give it a try and I will reach out to you again. |
@guidograzioli It always gives me empty nodes and vertices for pipeline jobs. |
Hi,
I can't seem to find API's directly available through the Jenkins groovy Sandbox API's. I can always parse the JSON data but was wondering if there is a straightforward method to find upstream and downstream based on the graph.
Update: I found this https://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#getDependencyGraph-- but it doesn't support workflow projects.
The text was updated successfully, but these errors were encountered: