Taking the base install of JenkinsRC I get regular hanging batch commands. When I check running tasks the batch has finished but Jenkins is still looking for the results. After some investigation I found the batch files being run by jenkins. jenkins-main.bat and jenkins-wrap.bat The wrap calls main. Once main is complete the wrap should write a the file jenkins-result.txt into the job folder. This file is not present when the task hangs. If is create a file with a 1 or 0 in it the task complete as expected. This failure is not every time but at least 2 out of 10 time it will fail.
example build
node{
echo 'test 123'
bat 'ping -r 10 127.0.0.1'
echo 'test done'
}
It will do the first echo and the ping completes but the eche 'test done' never starts. This make Jenkins pipeline unusable for us.
Daniel D.