-
Bug
-
Resolution: Fixed
-
Blocker
-
Jenkins 2.0RC1, Jenkins 1.6* LTS
Windows 2008r2, Windows 2012r2, Windows 7, Windows 10
When batch task is included in a Pipeline job it will hang on completion of the batch task. I can see in task manager that the job startup it logs data to jenkins-log.txt. The batch completes and I see in task manager that the batch is nolonger running. But Jenkins is still waiting for the task to complete. I do not see jenkins-result.txt writen to the workspace tmp durabletask directory. If I create the file manually or run the workflow-wrap.bat manually the task completes. This is an itermitent bug. Task might work 3 time then fail 5 times then work 8 times. No change to the system during this time. I am setting the job to run every min to see what the stats look like for longer run.
job:
node { bat 'ping 127.0.0.1 -n 10' echo 'batch completed' }
Could be any command you want ping is just an easy one to have it take a little bit of time. And require nothing else installed on machine.
I see many other task like this I have tested on serveral differnt machines using a base install of Jenkins.
- duplicates
-
JENKINS-50025 On some Windows Build Agents, Batch Steps Hang
-
- Closed
-
- is related to
-
JENKINS-33164 Pipeline bat stuck on Windows Server 2012
-
- Open
-
-
JENKINS-33749 jenkins pipeline dsl.bat does not return
-
- Resolved
-
-
JENKINS-32000 durable-task 1.7 breaks workflow bat steps
-
- Open
-
-
JENKINS-33904 Jenkinsfile batch steps randomly hang when complete
-
- Open
-
-
JENKINS-33456 durable-task 1.8 breaks workflow bat steps
-
- Resolved
-
-
JENKINS-50025 On some Windows Build Agents, Batch Steps Hang
-
- Closed
-
- links to
[JENKINS-34150] Pipeline Batch hangs
Epic Link |
New:
|
Description |
Original:
When batch task is included in a Pipeline job it will hang on completion of the batch task. I can see in task manager that the job startup it logs data to jenkins-log.txt. The batch completes and I see in task manager that the batch is nolonger running. But Jenkins is still waiting for the task to complete. I do not see jenkins-result.txt writen to the workspace tmp durabletask directory. If I create the file manually or run the workflow-wrap.bat manually the task completes. This is an itermitent bug. Task might work 3 time then fail 5 times then work 8 times. No change to the system during this time. I am setting the job to run every min to see what the stats look like for longer run. job: node { bat 'ping 127.0.0.1 -n 10' echo 'batch completed' } Could be any command you want ping is just an easy one to have it take a little bit of time. And require nothing else installed on machine. I see many other task like this I have tested on serveral differnt machines using a base install of Jenkins. |
New:
When batch task is included in a Pipeline job it will hang on completion of the batch task. I can see in task manager that the job startup it logs data to jenkins-log.txt. The batch completes and I see in task manager that the batch is nolonger running. But Jenkins is still waiting for the task to complete. I do not see jenkins-result.txt writen to the workspace tmp durabletask directory. If I create the file manually or run the workflow-wrap.bat manually the task completes. This is an itermitent bug. Task might work 3 time then fail 5 times then work 8 times. No change to the system during this time. I am setting the job to run every min to see what the stats look like for longer run. job: {code} node { bat 'ping 127.0.0.1 -n 10' echo 'batch completed' } {code} Could be any command you want ping is just an easy one to have it take a little bit of time. And require nothing else installed on machine. I see many other task like this I have tested on serveral differnt machines using a base install of Jenkins. |
Labels | Original: workflow | New: 2.0 workflow |
Attachment | New: jenkins2-pipeline-batch-nohang.png [ 32426 ] |
Labels | Original: 2.0 workflow | New: 2.0 testfest workflow |
Assignee | Original: Jesse Glick [ jglick ] | New: R. Tyler Croy [ rtyler ] |
Resolution | New: Cannot Reproduce [ 5 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Resolution | Original: Cannot Reproduce [ 5 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
I have just tried this on a Windows Server 2012R2 instance on EC2 with the Jenkins 2.0RC1 installer.
Using the Pipeline script:
I was able to successfully run the Pipeline a few times. I added a sleep 30 and was also able to abort the Pipeline successfully.
This is with: