Jenkins 2.0RC windows Batch file fail

41 views
Skip to first unread message

Daniel Daugherty

unread,
Apr 11, 2016, 1:11:33 PM4/11/16
to Jenkins Users
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. 

Daniel Beck

unread,
Apr 11, 2016, 1:59:10 PM4/11/16
to jenkins...@googlegroups.com
Could you file a bug against the 'workflow-plugin' component in JIRA, ideally with steps to reproduce? As this may be environment dependent, better include as much as you can. Are you running an antivirus tool that scans the directory this file should be in?

https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue

Daniel Daugherty

unread,
Apr 12, 2016, 1:32:48 PM4/12/16
to Jenkins Users, m...@beckweb.net
Issue created and band-aid pull request submitted.  As stated in the pull request while troubleshooting the issue reverting a change in how Jenkins logs batch command output back to older code allows code to function as expected.  I have the example job in the bug running one a min for 3+ hours now with no failure.  Revert back to 1.9 release of durable-task-plugin  I am lucky to get 10 strait working.  


Reply all
Reply to author
Forward
0 new messages