[JENKINS-43653] - Ensure AbstractItem#delete() NPE safety when checking executors (#2854)
* [JENKINS-43653] - Ensure AbstractItem#delete() NPE and RTE safety when checking executors. This change adds missing NPE checks and also improves handling of Executables#getParentOf(), which may throw undocumented Runtime exceptions if Executable uses core API below 1.377 and does not implement getParent(). Executor#stop() has been also modified to explicitly handle the issue though there is still the same issue with estimated execution times. * [JENKINS-43653] - Address comments from @jglick, restrict newly introduced API * [JENKINS-43653] - Address comments from @stephenc * [JENKINS-43653] - Cleanup "unrelevant" changes to make @stephenc and @jglick happy * [JENKINS-43653] - Cleanup the leftover * [JENKINS-43653] - Drop the changes in Executables
Showing
想要评论请 注册 或 登录