title: How to implement doIndex method from Jenkins RootAction class
body: <p>I create my own implementation of RootAction in Jenkins, instead of default behavior that just render and display index.jelly, I want to do some operations. as states from <a href="http://stapler.kohsuke.org/reference.html" rel="nofollow">http://stapler.kohsuke.org/reference.html</a></p>
  
  <p>Index Action Method
  This is a slight variation of above. If there's no remaining URL and there's an action method called "doIndex", this method will be invoked. Formally, 
  evaluate(node,[]) := node.doIndex(...)</p>
  
  <p>my code is </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@Extension
  public class MyRootAction implements RootAction {
     public void doIndex(StaplerRequest req, StaplerResponse rsp) {
          // doing my work when user type /MyRootAction in browser bar
          // this method never executed
     }
  
     public void doOtherWork(StaplerRequest req, StaplerResponse rsp) {
          // doing my work when user type /MyRootAction/otherWork in browser bar
          // this method works as intended
     }
     //...
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any one can help me to point what I did wrong?</p>