[ 
https://issues.jenkins-ci.org/browse/JENKINS-7920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160285#comment-160285
 ] 

Nick Vancauwenberghe edited comment on JENKINS-7920 at 3/15/12 12:47 PM:
-------------------------------------------------------------------------

I'm also hitting this issue. I can't access remote locations from Jenkins, 
while it works OK in Windows cmd. The machine has the correct permissions.

I played around with other user accounts for the Jenkins service. My user 
account but the service failed to start (Windows error 1069: the service did 
not start due to a logon failure). The network service account did run but than 
Jenkins throws errors it can't access the .NET framework.

No success, I'm also looking for a workaround or a solution.

Some info:
> The Jenkins machine OS is Windows 7 32-bit Prof. Jenkins is running as a 
> service using a local system account.
> I use UNC notation: \\target

Regards,
Nick
                
      was (Author: nvc):
    I'm also hitting this issue. I can't access remote locations from Jenkins, 
while it works OK in Windows cmd. The machine has the correct permissions.

I played around with other user accounts for the Jenkins service. My user 
account but the service failed to start (Windows error 1069: the service did 
not start due to a logon failure). The network service account did run but than 
Jenkins throws errors it can't access the .NET framework.

No success, I'm also looking for a workaround or a solution.

Regards,
Nick
                  
> Access denied when copy files from a network computer in Windows batch script
> -----------------------------------------------------------------------------
>
>                 Key: JENKINS-7920
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-7920
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>            Reporter: bakerzhang
>
> I have a problem (Access is denied) when I try to copy files across network 
> in a Windows batch script.
> Hudson will call a script, say, a.bat and inside a.bat I have the followings
> {code}
> ...
> setlocal ENABLEDELAYEDEXPANSION
> ...
> if DEFINED abc (
>    set xyz=\\computer\path
>    set filename=mm*.dll
>    copy /Y !xyz!\!filename!   
> )
> ...
> endlocal
> {code}
> The 'copy' command will fail and I Google for the problem but there's no 
> particular one. There's one paper saying UNC should be used 
> (http://stackoverflow.com/questions/1284561/hudson-continuous-integration-server-how-to-see-windows-mapped-directories-that).
>  So I did the following experiments:
> {code}
> 1) set xyz="//computer/path"
>    ...
>    copy /Y "!xyz!"\!filename!
> 2) ...
>    copy /Y "//computer/path"\mm*.dll
> {code}
> The 1) doesn't work and produces the same problem - "Access is denied." but 
> the 2) is working. However, copy /Y "//computer/path"\!file_name! won't work 
> either.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to