Does Jenkins on Windows handle processes and file handles differently?

11 views
Skip to first unread message

Rob Gulley

unread,
Oct 30, 2016, 3:33:32 PM10/30/16
to Jenkins Users

I have an Ant target invoked by a build that writes its output to a log file but that target also happens to do a <move> on that same file (I know, I know...) while running. I'm getting an "unable to delete" warning, which makes sense, but it stops the rest of the move operation, which is a huge problem.


BUT this always worked without a problem in CruiseControl on the same Windows 2008 R2 machine. In fact, this Ant target has always worked on Windows machines always. This build also works on our Jenkins-on-Linux machines as well. Just not on Jenkins-on-Windows.

I'm baffled. Is there something that jenkins.exe is doing that causes file handles to be treated different by child processes? Am I going completely insane?


Latest Jenkins on jdk1.8u66, same jdk for Ant

No exotic plugins, this part of the build in question is invoked in the vanilla Jenkins "Execute Windows Batch"

Reply all
Reply to author
Forward
0 new messages