-
Improvement
-
Resolution: Won't Do
-
Major
-
None
-
Platform: All, OS: All
Enhancement that allows you to execute arbitrary code *before the job is put on
an executor* and periodically by specified interval. If exit code is non-zero
then don't put on an executor. If zero, then execute.
You don't rely on simple locks but you can check for example there is enough
time before database maintenance window or something like that.
I think most flexible would be to allow for execution of arbitrary available
task in hudson. Though most useful will be a groovy script executed on the
master system. That will allow for one to check hudson state in any possibly
needed way, as well execute external command if needed.
The Hudson locks and latches plugin is not distributed by the Jenkins update center. It was proposed for deprecation in 2015 and has known blocking issues. It prevents the saving of Jenkins job configurations in Jenkins 2.277.1 and later.
If someone adopted the plugin, updated it to work with Jenkins 2.277.1 and later, and released a new version, then this issue report could be reopened.