Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Retry checkout step in case of connection error/server load #3465

robinshen ADMIN ·
To do this, put your original checkout step inside a sequential container, say "checkout retries", and configure below settings of the checkout step:
1. in advanced setting of the step, add a repeat parameter, say "retry", with value set to "1, 2, 3" (means to retry for three times)
2. change build condition of the checkout step to execute below script:
groovy:
def prevExecuted = step.previousExecutedSibling;
if (prevExecuted != null) {
if (prevExecuted.failed) {
// previous try failed, let's sleep awhile before retrying
sleep(30000);
return true;
} else { // we've executed the checkout successfully, so no longer need to repeat the execution
return false;
}
} else {
// this is first execution of our checkout step, let's run it
return true;
}
  • replies 2
  • views 3478
  • stars 0
DavidW ·
Hi,

i've got two questions.
I have several checkout steps in a parallel container. If I would use your retry solution, I would have to put every single checkout step into a sequential container (which are then in the parallel container)?

Is it possible to get this as a basic functionality (like a "Retry Step when failed X Times") in future QuickBuild Versions?

David
robinshen ADMIN ·
Yes that is correct. Please file an improvment request at track.pmease.com.