Search code examples
javascripthtmljenkinshudsonhudson-plugins

How to show javascript (html?) graph in hudson


I have a piece of Javascript (html page??) that displays a graph of some data. The piece of code looks like:

<html>
<head>

    <!--Load the AJAX API-->
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="stringformat.js"></script>
    <script type="text/javascript">

           ... script...

    </script>
</head>

<body>
<!--Div that will hold the line graph-->
    <div id="chart_div_netLatency"></div>
    <div id="chart_div_mamaLatency"></div>
    <div id="chart_div_fhLatency"></div>
    <div id="chart_div_totalLatency"></div>

    <input id="date-input" style=margin-left:160px type="text"  id="date" name="date" />
    <input type="button" value="submit" onClick="updateData();"/>
    <p style=margin-left:160px> Date format: YYYY.MM.DD </p>

    <img  style=margin-left:30px src="timeline.bmp" alt="timeline"/>

</body>

Could anyone tell me if there's a way to show the graph produced by this script in Hudson.

Thanks!


Solution

  • You could add a link to the script in the sidebar using this plugin or do it more dynamically by giving the links in a text file with this plugin.