title: jenkins pipeline declarative syntax retry with regex
body: <p>I see there is option to retry failed build <code>options { retry(3) }</code>. I was using navigator plugin with regex to retry only if regex matches, but it doesn't support pipeline. </p>
  
  <p>Is there way to retry only if matches regex in console logs or error, if not can I put random time delay to retry?</p>