title: How to execute next stage in sequential stages inspite of previous stage failure in Jenkins pipeline
body: <p>At the moment I have two stages defined in Jenkins because they both need different agents.</p>
  <p>Here is my Proof of concept code</p>
  <pre><code>stages {
      stage(&quot;Run Tests&quot;){
          agent docker
          stage(&quot;Do setup&quot;){}
          stage(&quot;Testing&quot;) {}
          post{
              always{
                  echo &quot;always&quot;
              }
              failure {
                  echo &quot;failure&quot;
              }
          }
      }
      stage(&quot;Generate Reports&quot;){
          agent node-label
          stage(&quot;Generate&quot;){
  
          }
      }
  }
  </code></pre>
  <p>I need &quot;Generate reports&quot; on different agent since certain binaries are on the node and not inside docker container. Tests run inside docker share volume on node so I get all artifacts that are needed to generate report on the node</p>
  <p><em>(I have tried to run &quot;Generate reports&quot; in post stage, but it seems to run inside docker container somehow.)</em></p>
  <p>Now if &quot;Run Tests&quot; fails, &quot;Generate reports&quot; is skipped due to previous stage failure. Any idea how I can force &quot;Generate reports&quot; stage to be run even on failure of previous stage.</p>