ReleaseLogsAction.java

@Extension
public class ReleaseLogsAction
  implements RootAction
{
  public String getIconFileName() { return "/plugin/bigredbutton/log.png"; }
  public String getDisplayName() { return "Release Logs"; } 
  public String getUrlName() { return "/release-logs"; } 

  public List<String> getLogFiles() { ...  } 

  public void doShow(final StaplerRequest req,
                     final StaplerResponse resp)
    throws IOException, ServletException
  {
    final String logFile = req.getParameter("file");
    final AnnotatedLargeText logText = new AnnotatedLargeText(new File(ReleaseToQA.rootDirectory(), logFile),
                                                              Charset.defaultCharset(),
                                                              true,
                                                              null);
    req.setAttribute("file", logFile);
    req.setAttribute("logText", logText);
    req.getView(this, "showLog.jelly").forward(req, resp);
  } // doShow

  public View getPrimaryView() { return Jenkins.getInstance().getPrimaryView(); }
} // class ReleaseLogsAction
    
RootAction means it goes into the lefthand menu. getIconFileName, getDisplayName, and getUrlName are used to build the menu item. When I click on the link, stapler walk the tree. It doesn't find a doIndex method on ReleaseLogsAction, but in resources/plc/releaseqa/ReleaseLogAction it finds an index.jelly, so it loads that.