title: jenkins (declarative) pipeline post action 'success' before 'always'?
body: <p>Is it possible to do "success" post build before "always" ?</p>
  
  <p>For exemple, if I do that :</p>
  
  <pre><code>post {
      success{
          archiveArtifacts artifacts: 'server/target/*.jar'
          deleteDir ()
      }
      always{
          deleteDir()
      }
  
  }
  </code></pre>
  
  <p>In console Output it's done upside down... </p>
  
  <p>" [Pipeline] deleteDir</p>
  
  <p>[Pipeline] archiveArtifacts
   Archiving artifacts "</p>
  
  <p>To bypass that, I use :</p>
  
  <pre><code>success{
          archiveArtifacts artifacts: 'server/target/*.jar'
          deleteDir ()
      }
      failure{
          deleteDir()
      }
      aborted{
          deleteDir()
      }
  }
  </code></pre>