Open rtyler opened 3 years ago
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.
graph
dot
+-----+ +------+ +--------+ |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
jdp graph Jenkinsfile | dot -o pipeline.png
May I try this?
@himanoa try to implement it? Go for it :smile:
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 outputsdot
format for graphing with Graphviz, e.g.(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