@ RequirePOST public void doUpdateNow ( StaplerRequest req , StaplerResponse rsp ) throws IOException , ServletException { Jenkins . getInstance ( ) . checkPermission ( Jenkins . ADMINISTER ) ; for ( NodeMonitor nodeMonitor : NodeMonitor . getAll ( ) ) { Thread t = nodeMonitor . triggerUpdate ( ) ; String columnCaption = nodeMonitor . getColumnCaption ( ) ; if ( columnCaption != null ) { t . setName ( columnCaption ) ; } } rsp . forwardToPreviousPage ( req ) ; }
Triggers the schedule update now .