title: Jenkins pipeline "waitUntil" - change delay between attempts
body: <p>We use a Jenkins pipeline for our builds and tests. After the build, we run automated tests on several measurement devices.</p>
  
  <p>For a better overview about the needed testing time, I created a test stage which is periodically checking the status of the tests. When all tests are finished, the pipeline is done. I use the "waitUntil" implementation of Jenkins pipeline for this functionality.</p>
  
  <p>My problem is: The pause between the attemps gets more and more after every try. This is a quite good idea. BUT: After a while, the pause between the attemps gets up to 16 hours and more. This value is too high for my needs because I want to know the needed test time exactly.</p>
  
  <p>My question is: Does anyone know a way to change this behaviour of "waitUntil"?</p>
  
  <p>I know I could use a "while" loop but I would prefer to solve this using "waitUntil".</p>
  
  <pre><code>stage "&gt;&gt;&gt; Waiting for testruns"
  waitUntil {
      sleep(10)
      return(checkIfTestsAreFinished())
  } 
  </code></pre>