With the old Warnings plugin, I was able to embed the chart images into another page (Jenkins View Description primarily) so that I could create a status dashboard of all the projects in one place and we could visually see any changes at a glance.

      I don't necessarily need interactive charts, just an image that I can embed with a hyperlink to the relevant Job's Warnings page. 

          [JENKINS-56752] Ability to embed charts into other pages

          Ulli Hafner added a comment -

          All charts are now rendered on the client side. Currently there is no rendering engine on the server available. I don't know if it is feasible to use the data model of the client chart for such a feature.

          Ulli Hafner added a comment - All charts are now rendered on the client side. Currently there is no rendering engine on the server available. I don't know if it is feasible to use the data model of the client chart for such a feature.

          Ulli Hafner added a comment -

          Just a side note here so that it does not get forgotten. In order to create an image within a Stapler method, one can use the following code.

                      if ("chart".equals(link)) {
                          InputStream image = IssuesDetail.class.getResourceAsStream("/bug-48x48.png");
                          response.setContentType("image/png");
                          ServletOutputStream os = response.getOutputStream();
                          IOUtils.copy(image, os);
                          os.close();
                          return null;
                      }
          
          

          Ulli Hafner added a comment - Just a side note here so that it does not get forgotten. In order to create an image within a Stapler method, one can use the following code. if ( "chart" .equals(link)) { InputStream image = IssuesDetail. class. getResourceAsStream( "/bug-48x48.png" ); response.setContentType( "image/png" ); ServletOutputStream os = response.getOutputStream(); IOUtils.copy(image, os); os.close(); return null ; }

            Unassigned Unassigned
            msatterthwaite Mark Satterthwaite
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: