title: How to make a Jenkins/Hudson job surveil some others jobs and decide whether to build or not?
body: <p><strong>PROBLEM</strong></p>
  
  <p>Given that all the jobs have string <code>LEVEL_X</code> in it's job name, where X is a number > 1. I want every job with X = n to surveil every job with <code>X = n-1</code>, and start building if each of them is finished with success. And I want the job with <code>X = n</code> to surveil the other jobs with an interval of 1 minute.</p>
  
  <p>First of all, I am interested in knowing what the best way is to do that, second I want the solution if one can be implemented by a small script, maybe a groovy script which can be run in <code>system groovy script</code> using the GROOVY PLUGIN.</p>