Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8514

Add possibility to customize graph layout for dependency graph viewer

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • depgraph-view-plugin
    • None

      For instance, "rankdir=LR"

          [JENKINS-8514] Add possibility to customize graph layout for dependency graph viewer

          tk694h added a comment -

          I agree I have a project that consists of 22 build jobs that consist of a level hiearchy. I copy/pasted the code and added rankdir=LR and the graph is much more readable so I'd love to see this improvement implemented!

          tk694h added a comment - I agree I have a project that consists of 22 build jobs that consist of a level hiearchy. I copy/pasted the code and added rankdir=LR and the graph is much more readable so I'd love to see this improvement implemented!

          Bruno Marti added a comment -

          I'm getting graphs with yellow background color. Not really nice.
          How to add customize support like:

          • -bgcolor white

          (jenkins 1.420, Dependency Graph View Plugin 0.1, dot 2.26.3)

          Bruno Marti added a comment - I'm getting graphs with yellow background color. Not really nice. How to add customize support like: -bgcolor white (jenkins 1.420, Dependency Graph View Plugin 0.1, dot 2.26.3)

          Jim Searle added a comment -

          It would be really nice to have a global and job specific setting for customizing things like:

          graph [
          fontname = "Helvetica-Oblique",
          fontsize = 6,
          ratio = .5,
          ];

          and also the node style as well

          Jim Searle added a comment - It would be really nice to have a global and job specific setting for customizing things like: graph [ fontname = "Helvetica-Oblique", fontsize = 6, ratio = .5, ]; and also the node style as well

          I'd like to be able to do this as well, in my case, I just tweaked it with a tiny wrapper script:

          #!/usr/bin/perl

          my $tf = "/tmp/tmp-dot-$$-" . time;
          open(my $out, ">$tf");
          while ( defined(my $line = <STDIN>) )
          {
          print $out $line;
          if ( $line =~ /^digraph/ )

          { print $out "nodesep=0.25;"; print $out "ranksep=1;"; print $out "rankdir=LR;"; }

          }

          open(STDIN, "<$tf");
          unlink($tf);
          system("/usr/bin/dot", @ARGV);

          Nathan Neulinger added a comment - I'd like to be able to do this as well, in my case, I just tweaked it with a tiny wrapper script: #!/usr/bin/perl my $tf = "/tmp/tmp-dot-$$-" . time; open(my $out, ">$tf"); while ( defined(my $line = <STDIN>) ) { print $out $line; if ( $line =~ /^digraph/ ) { print $out "nodesep=0.25;"; print $out "ranksep=1;"; print $out "rankdir=LR;"; } } open(STDIN, "<$tf"); unlink($tf); system("/usr/bin/dot", @ARGV);

            Unassigned Unassigned
            voorth voorth
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: