title: How to replicate dir step in groovy
body: <p>Below is my pipeline code :</p>
  <pre><code>dir(my_directory) {
        retry(1) {
               // something
        }
  }
  </code></pre>
  <p>Is there a possibility to access <strong>dir</strong> step in groovy through the pipeline context ?</p>
  <p>I'm thinking of something like this below</p>
  <pre><code>class StepExecutor {
    // some code
      void dir(String directory, Closure statement) {
          this.steps.dir(directory) { statement }
      }
  }
  </code></pre>