Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: workflow-basic-steps-plugin
-
Labels:None
-
Environment:Jenkins 2.164.3
java 1.8.0_192
OS - Red hat 7
workflow-basic-steps : 2.18
-
Similar Issues:
Description
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
We'll need to see your full Jenkinsfile, but if you have a try-catch make sure you handle InterruptedException to bubble it out.