Treat any interruption during boot as a fatal failure

This commit is contained in:
Kohsuke Kawaguchi committed 2016-04-26 17:53:41 -07:00
1 parent 1f051eb37e
commit 808c44c8e3
2 files changed
+5 -2

No files matched your search

@@ -225,6 +225,11 @@ public class WebAppMain implements ServletContextListener {
boolean success = false;
try {
Jenkins instance = new Hudson(_home, context);
// one last check to make sure everything is in order before we go live
if (Thread.interrupted())
throw new InterruptedException();
context.setAttribute(APP, instance);
BootFailure.getBootFailureFile(_home).delete();