title: Is there a way to add pre-build step for Jenkins pipeline?
body: <p>Currently I'm able to use a post directive in my Jenkinsfile. Is there a way to trigger a pre-build step similar to this ?</p>
  
  <pre><code>  post {
      always {
        sh '''rm -rf build/workspace'''
      }
    }
  </code></pre>