-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Fedora 26, Jenkins ver. 2.60.2, java-1.8.0-openjdk
Simple pipeline below sporadically hangs after completing last "sh" step. Command already completed and can't be seen in process list, but pipeline is still in running state and won't finish.
There are 2 nodes "builder" and "runner", which (for testing) were both setup to run on localhost (via ssh). Jenkins did ~15 builds of pipeline below before running into this problem, there are no other jobs/builds.
I'll try to keep the system in this failed state for couple days, in case anyone has tips what further data would be useful to gather:
Jenkinsfile:
node('builder') { stage('Build/Fetch') { git ... sh '''curl -O http://file/skt/sktrc curl -O http://file/skt/default.config''' } stage('Build') { sh '''./skt.py -vv --state --rc sktrc merge ./skt.py -vv --state --rc sktrc build ./skt.py -vv --state --rc sktrc publish''' sktrc = readFile 'sktrc' sh '''./skt.py -vv --state --rc sktrc cleanup''' } } node('runner') { stage('Test/Fetch') { git 'http://git/skt.git' sh '''curl -O http://filejob.xml''' writeFile file: 'sktrc', text: "${sktrc}" } stage('Test') { sh '''PATH="/home/worker/bin:$PATH" ./skt.py -vv --state --rc sktrc run --wait ./skt.py -vv --state --rc sktrc cleanup''' } }
Pipeline threadDump:
Thread #12 at WorkflowScript.run(WorkflowScript:36) at DSL.stage(Native Method) at WorkflowScript.run(WorkflowScript:35) at DSL.node(running on runner_localhost) at WorkflowScript.run(WorkflowScript:29)
- relates to
-
JENKINS-50892 Pipeline jobs stuck after restart
-
- Closed
-
-
JENKINS-51568 Pipeline jobs hanging in Build Executor even if it is finished
-
- Open
-
[JENKINS-46283] pipeline hangs after executing sh step command
Component/s | New: workflow-durable-task-step-plugin [ 21715 ] | |
Component/s | Original: pipeline [ 21692 ] |
Link | New: This issue relates to JENKINS-51568 [ JENKINS-51568 ] |
I may have experienced this issue ("pipeline hangs after executing sh step command") as well – jglick maybe it is more similar to
though (because the thread dump looks more similar: emphasizing "DSL.sh(completed process...") – and in my case an admittedly accidental unmotivated but at least gentle Jenkins restart happened DURING the 'sh' step execution (thus without prior 'Manage Jenkins > Prepare for Shutdown'):JENKINS-37730