Jenkins jelly script not generating chart using external javascript library -
i executing bellow jelly script through jenkins through email template testing option not displaying pie chart. following script
<body> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['corechart']}); google.charts.setonloadcallback(drawchart); function drawchart() { alert('hello'); var data = google.visualization.arraytodatatable([ ['task', 'out of total test cases'], ['failed', 10], ['passed', 20] ]); var options = { title: 'report details' }; var chart = new google.visualization.piechart(document.getelementbyid('piechart')); chart.draw(data, options); } </script> <table border="1" width="80%"> <tr><td id="piechart" style="width: 600px; height: 500px;"> </td></tr> </table> </body> </j:jelly>
Comments
Post a Comment