Don't know if it's relevant to what's going on in your situation (as we
don't have our Win7 agents running as services, but do you have your Win7
service for Jenkins set to be able to interact with the desktop?   (I don't
remember specifically where that's set or what it's called, but I know we
had to do something similar with some Win7 situations)

Can you do a copy into that directory via your Jenkins job to verify that
Jenkins has permissions to write to that location?  I'd assume so since it
seems that the out.txt gets created.

What about trying to see if myProg is the issue on Win7 rather than
Jenkins?  Can you echo something (like ENV >>out.txt) to see if that can
write out to your output file?  If that succeeds, then I'd look at what
myProg is doing.

Scott


On Fri, Mar 28, 2014 at 9:07 AM, David Aldrich
<[email protected]>wrote:

>  Hi
>
>
>
> We have a regression test that runs happily under Jenkins on a Windows XP
> slave but fails on a Windows 7 slave.  I believe that Jenkins runs as a
> Windows Service in both cases.
>
>
>
> Part of the test is to run our application and redirect the output to a
> file:
>
>
>
> myProg > out.txt
>
>
>
> This runs as a Windows batch command step.  On the Win XP slave out.txt
> contains the expected output.  On a Windows 7 slave out.txt is empty.
>
>
>
> If I delete the redirection so that I just have:
>
>
>
> myProg
>
>
>
> the Win XP slave's  console output correctly shows the expected output but
> nothing appears for the Win 7 slave.
>
>
>
> If I run the program manually on the Win 7 slave from a DOS command prompt
> I see the expected output.
>
>
>
> Please can anyone suggest what is going on?
>
>
>
> Best regards
>
>
>
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to