Skip to content
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

Add a graph subcommand to the CLI to visualize stage progression #12

Open
rtyler opened this issue Dec 20, 2020 · 2 comments
Open

Add a graph subcommand to the CLI to visualize stage progression #12

rtyler opened this issue Dec 20, 2020 · 2 comments
Labels
cli Command line interface issues enhancement New feature or request good first issue Good for newcomers

Comments

@rtyler
Copy link
Owner

rtyler commented Dec 20, 2020

Now that the parser is already having to inspect each stage for correctness, it shouldn't be too much surgery to add a graph subcommand that either prints a stage graph in the CLI or outputs dot format for graphing with Graphviz, e.g.

+-----+     +------+     +--------+
|Build+---> | Test +---> | Deploy |
+-----+     +------+     +--------+

(handling nested stages and parallel obviously, thus the suggestion to just output dot format)

It would be nice if I could pipe this, e.g. jdp graph Jenkinsfile | dot -o pipeline.png

@rtyler rtyler added enhancement New feature or request good first issue Good for newcomers cli Command line interface issues labels Dec 20, 2020
@himanoa
Copy link

himanoa commented Aug 20, 2021

May I try this?

@rtyler
Copy link
Owner Author

rtyler commented Aug 20, 2021

@himanoa try to implement it? Go for it 😄

himanoa added a commit to himanoa/jdp that referenced this issue Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command line interface issues enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants