-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
This plugin allows you to restart Jenkins safely. Jenkins restarts once all running jobs are finished.
This is the statement on the README.md of the safe restart plugin, and it is exactly the behavior most users would expect and need. However, the next statement introduces a caveat:
Pipeline builds may prevent Jenkins from restarting for a short period of time in some cases, but if so, they will be paused at the next available opportunity and then resumed after Jenkins restarts.
This caveat renders the plugin unusable for many pipelines and organizations, in which pipelines are not expected or wanted to be pause/resumable for a variety of reasons.
This request is to add a configuration option for safe restart which says:
- "Wait for all active pipeline runs to finish" OR "do not pause jobs"
I recognize this may require a major change to the plugin, to prevent new jobs from starting while still allowing node blocks to be scheduled. However, I honestly think this is a correct mode of behavior this plugin should support.