code: public void publish(ServletContext context, @CheckForNull File home) {
          LOGGER.log(Level.SEVERE, "Failed to initialize Jenkins",this);
  
          WebApp.get(context).setApp(this);
          if (home == null) {
              return;
          }
          new GroovyHookScript("boot-failure", context, home, BootFailure.class.getClassLoader())
                  .bind("exception",this)
                  .bind("home",home)
                  .bind("servletContext", context)
                  .bind("attempts",loadAttempts(home))
                  .run();
      }
docs: Exposes this failure to UI and invoke the hook.
  
  @param home
  JENKINS_HOME if it's already known.