title: Is there any way to continue loop even if command inside "for" loop fails in jenkins pipeline
body: <pre><code>stages {
  
      stage('Stage1: Exec') {
          agent {
              label 'master'
          }
          steps {
              dir(&quot;/opt/exec/&quot;) {
                  script {     
                      item = params.keys
                      values = item.keys(&quot;,&quot;)
                      for (String value: values) { 
                                  bat &quot;//run a maven command&quot; 
                              }
                          }
                      }
                  }
  
              }
          }
  </code></pre>
  <p>&quot;params.keys&quot; are values from selection in extended choice parameter. Even if maven command fails inside &quot;for&quot; loop for a value; I want &quot;for&quot; loop to continue further for remaining values rather than saying build as failed. Using CatchError will continue the loop or proceed to next stage?</p>