Failed job backoff

I can’t find any such functionality or plugin, but I’ll ask the question anyway. Does anyone know of a feature or plugin for Jenkins which would geometrically back off a failed job’s run schedule? SideKiq does this. So, let’s say you have a job that is scheduled to run every 10 minutes. Today, if that job fails, it will continue to try to run every 10 minutes, even if if keeps failing. What would be nice is if it could backoff, such that a failed job would then try after 20 minutes, then an hour, then 8 hours, then a day, then a week, etc… Search for SideKiq’s backoff feature and you’re sure to get a better explanation.

Thanks.

Not what you’re seeking, but the Naginator plugin will retry a failed build with an optional delay between the build failure and the retry. You might be able to use it as a base to implement the functionality you need.

1 Like

Thanks, Mark. This could be helpful as long as a Jenkins job could be told to stop scheduled runs while the last build is failed. I’ll have to see if that exists.

There’s also the working hours plugin that lets you set hours builds can be run. That might be useful in this case.