@ RequirePOST public synchronized HttpResponse doReload ( ) throws IOException { checkPermission ( ADMINISTER ) ; LOGGER . log ( Level . WARNING , "Reloading Jenkins as requested by {0}" , getAuthentication ( ) . getName ( ) ) ; // engage "loading ..." UI and then run the actual task in a separate thread WebApp . get ( servletContext ) . setApp ( new HudsonIsLoading ( ) ) ; new Thread ( "Jenkins config reload thread" ) { @ Override public void run ( ) { try { ACL . impersonate ( ACL . SYSTEM ) ; reload ( ) ; } catch ( Exception e ) { LOGGER . log ( SEVERE , "Failed to reload Jenkins config" , e ) ; new JenkinsReloadFailed ( e ) . publish ( servletContext , root ) ; } } } . start ( ) ; return HttpResponses . redirectViaContextPath ( "/" ) ; }
Reloads the configuration .