@ Nonnull public String getDescription ( ) { Stapler stapler = Stapler . getCurrent ( ) ; if ( stapler != null ) { try { WebApp webapp = WebApp . getCurrent ( ) ; MetaClass meta = webapp . getMetaClass ( this ) ; Script s = meta . loadTearOff ( JellyClassTearOff . class ) . findScript ( "newInstanceDetail" ) ; if ( s == null ) { return "" ; } DefaultScriptInvoker dsi = new DefaultScriptInvoker ( ) ; StringWriter sw = new StringWriter ( ) ; XMLOutput xml = dsi . createXMLOutput ( sw , true ) ; dsi . invokeScript ( Stapler . getCurrentRequest ( ) , Stapler . getCurrentResponse ( ) , s , this , xml ) ; return sw . toString ( ) ; } catch ( Exception e ) { LOGGER . log ( Level . WARNING , null , e ) ; return "" ; } } else { return "" ; } }
A description of this kind of item type . This description can contain HTML code but it is recommended that you use plain text in order to be consistent with the rest of Jenkins .