Build paused after multiple restarts and then hangs despite timeout

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

XMLWordPrintable

      For a pipeline script of

      pipeline {
          agent none 
          options { 
              timestamps() 
              buildDiscarder(logRotator(numToKeepStr: '30', artifactNumToKeepStr: '30'))
              timeout(time: 5, unit: 'HOURS')
              ansiColor('xterm')
          }
          stages {
              stage('Pre-Build') {
      		....
      <truncated>
      

      When the timeout is reached, we see the job hang and not killed.

      The job is way past its 5 hour timeout.

      12:08:55  [2019-10-10 19:08:55] [INFO] Running verify succeeded in 27s
      16:54:40  Cancelling nested steps due to timeout
      16:55:40  Body did not finish within grace period; terminating with extreme prejudice
      

      Relevant OSS code - https://github.com/jenkinsci/workflow-basic-steps-plugin/blob/3ecc7bbd91182e330a23a9e661ae1cdfa2d2b55e/src/main/java/org/jenkinsci/plugins/workflow/steps/TimeoutStepExecution.java#L152

            Assignee:
            Jesse Glick
            Reporter:
            Croydon Dias
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: