Retry option doesn't respect timeout in declarative pipeline

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

XMLWordPrintable

      The following pipeline succeeds, even though `sleep` times out on the first try. It appears that the second try ignores the `timeout` option.

      pipeline {
          agent none
          stages {
              stage('With timeout') {
                  options {
                      retry(2)
                      timeout(time: 5, unit: 'SECONDS')
                  }
                  steps {
                      sleep time: 10, unit: 'SECONDS'
                  }
              }
          }
      }
      

            Assignee:
            Unassigned
            Reporter:
            Victor Balakine
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: