0
votes

I am getting this error when I trigger a Job in JEnkins slave (Windows Server 2012) to copy an ISO Image with a powershell script.

I have this function "CopyHere (source,target)" on my powershell script which makes the copy Task. (And of course after that, I get this:

Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more Information)

When i googled it, i got a recommended solution, but the Workaround of Jenkins site is not clear to me... do I Need a Batch file to stop that, and what shall I write on it, and shall I put it on the Workspace of my Job.

Can anyone please clarify this? Please I Need your help

Otmann

1

1 Answers

1
votes

Most probably, you might not require what's suggested in the link you mentioned. Check out this link.

Add this line just before the CopyHere command: $env:HUDSON_SERVER_COOKIE = ''

I haven't use PowerShell. Just tried once to see how it looks like. :) Google told me that the above syntax is correct. You might be knowing it better. :) All you need to do is unset the variable HUDSON_SERVER_COOKIE.

If my suggestion doesn't work, do let me know.