rezeptfrei viagra achat cialis générique 10mg comprar viagra por telefono prezzi cialis comprar vardenafil viagra piller pris cialis preço farmacia köpa viagra sverige achat de viagra professional proscar 5 mg prezzo cialis en pharmacie kamagra oral jelly preis kamagra amsterdam acheter tadalafil generique viagra vente libre en pharmacie
proscar kosten proscar online bestellen viagra tarifs tadalafil naturale viagra vente en ligne commander kamagra viagra prix viagra viagra rezeptfrei erfahrungen kamagra online bestellen cialis viagra levitra differenze viagra vente libre cialis ricetta finasteride 5 mg levitra receta medica cialis instrucciones

Count number of jobs in Hudson

I wanted to count the number of jobs running on a Hudson server (continuous integration) at work.

 

This javascript counts the number of lines in the table with all jobs:

 

document.getElementById("projectstatus").children[0].children.length

 

Or save this as a browser toolbar bookmarklet:

Name: #HudsonJobs
 javascript:(function(e){alert(document.getElementById("projectstatus").children[0].children.length);e.preventDefault()})()

This line finds the table with id=”projectstatus”, and counts the TR elements inside of it’s TBODY.

At work it said 445 lines, including the table header.

 

Which means that this hudson server has configured 444 jobs.

 

That’s insane!

 

How many jobs are on your Hudson servers?

 

(I am currently relying on the html structure for Hudson version 2.1.2. It may work for other versions as well)

 

Comments are closed.