title: How to continue jenkins pipeline after a host reboot.
body: <p>I have a Jenkins job which is currently used for rebooting a host, this is a part of a pipeline and has several downstream jobs. Currently the job is rebooting and sleeping before starting the downstream build. Is there a better way within the job to check if the host is back up before continuing instead of using sleep? </p>
  
  <p>Reboot_host job is currently executing:</p>
  
  <pre><code>ssh &lt;hostname&gt; "sudo reboot"
  sleep 90
  </code></pre>
  
  <p>The host is a VM which is why the sleep duration is so short. </p>