Timeout occurence inside a retry step wont cancel the latter

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

XMLWordPrintable

      having a code such as:

      node('master') {
        timeout (10) {
          retry(2) {
            try {
              sh "while true; do; sleep 2; done"
            } catch (e) {
              echo "wont ever run as theres no exception coming out from the timeout"
            }
          }
        }
      }
      

      leds to the first retry to end due a (supposedly) internal exception being thrown but go on with the second one.

      Shouldnt timeouts forbid retrying? Besides, timeouts won't throw an exception as the last echo won't ever happen

            Assignee:
            Unassigned
            Reporter:
            Javier Delgado
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: