Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding jenkins data

  • Loading branch information...
commit 343a9d8658d301e475af62955744700285fc2c31 1 parent 56b832a
@ranginui ranginui authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 views/show_entries.tt
View
27 views/show_entries.tt
@@ -40,6 +40,33 @@ function needsignoff(){
setTimeout(needsignoff, 100000);
};
+function jenkins(){
+$.getJSON('http://jenkins.koha-community.org/api/json?jsonp='+"?&callback=?",
+ function(data){
+ $('#jenkins').html('<ul>');
+ var jobs = data.jobs;
+ for(var i=0;i<jobs.length;i++){
+ var name = jobs[i].name;
+ var colour = jobs[i].color;
+ var status;
+ if (colour === 'yellow') {
+ status = 'Unstable';
+ }
+ else {
+ if (colour === 'blue'){
+ status = 'Stable';
+ }
+ else {
+ status = 'Broken';
+ }
+ }
+ $('#jenkins').append('<li>'+name+' - '+status+'</li>');
+ }
+ $('#jenkins').append('</ul>');
+ }
+ )
+ };
+
$(document).ready(function(){
loadbugs();
randombug();
Please sign in to comment.
Something went wrong with that request. Please try again.