title: How do I implement a retry option for failed stages in Jenkins pipelines?
body: <p>I have a Jenkinsfile with multiple stages and one of them is in fact another job (the deploy one) which can fail in some cases.</p>
  
  <p>I know that I can made prompts using Jenkinsfile but I don't really know how to implement a retry mechanism for this job.</p>
  
  <p>I want to be able to click on the failed stage and choose to retry it.
  <a href="https://i.stack.imgur.com/uI8vp.png"><img src="https://i.stack.imgur.com/uI8vp.png" alt="jenkins-pipelines-with-stages"></a> </p>