mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
Treat any interruption during boot as a fatal failure
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user