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.
I know that I can made prompts using Jenk
This one with a nice incremental wait
stage('deploy-test') { def retryAttempt = 0 retry(2) { if (retryAttempt > 0) { sleep(1000 * 2 + 2000 * retryAttempt) } retryAttempt = retryAttempt + 1 input "Retry the job ?" build 'yourJob' } }