title: Block Jenkins job until a certain resource is available
body: <p>When using Jenkins as an integration server, some of my tests require the availability of external resources like an MySQL database server. Is it possible to block a job until such a resource is available?</p>
  
  <p>The only workaround I can think of is using a periodically executed upstream job which checks for service availability which is kinda smelly.</p>