Unable to understand when AbortError is created by user`s action like pressing button Stop

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      This doesn't help and actually looks like a veeery huge hack:

      try {
              sh "bash do_magic.sh"
              do_another_magic()
      } catch (hudson.AbortException e) {
              if (e.getMessage().contains('script returned exit code 143')) {
                       echo "aborted by user"
                       throw e
              } else {
                       echo "aborted by error, continuing next stage"
              }
      }
      

            Assignee:
            Unassigned
            Reporter:
            Oleg Korsak
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: