viagra 100 mg 
viagra paypal france 
medicament viagra 
viagra online store 
vente de cialis en ligne 
prix cialis 10 
générique vardenafil par mastercard 
acheter cialis viagra 
meilleur generique viagra 
prix viagra cialis 
génériques viagra 
acheter du cialis moins cher 
cialise medicament 
kamagra soft tabsmg 
vardénafil générique 
viagra venta online viagra vervangers viagra einzeln bestellen vendita viagra farmacia italiana generico do viagraonline precio levitra generico viagra achat libre viagra merken kamagra entrega rapida 5dias cialis generico comprar kamagra online levitra precio viagra kopen apotheek forum viagra de l'inde comprar viagra generico

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.