jenkins does not find my ant script located on network windows drive

1,117 views
Skip to first unread message

Gilles Kacki

unread,
Jan 13, 2014, 4:26:54 AM1/13/14
to jenkins...@googlegroups.com
Hello,
cannot make jenkins finding my ant script located on a windows mounted drive although:
jenkins service started by same user than the one for mounting the drive.
Also tried with UNC path but unfortunately not supported...
any hint?
Thanx!

Jenkins ver. 1.546, behind Apache 2.4



Gilles Kacki

unread,
Jan 13, 2014, 8:58:27 AM1/13/14
to jenkins...@googlegroups.com
the only workaround i found is to add a build step before "Ant" called
"Execute Windows Batch command" with following
net use S: /Delete /y
net use S: \\pc1\share /PERSISTENT:YES

which i do not find very elegant by the way.
Any other clean solution?

I have win7

Slide

unread,
Jan 13, 2014, 9:07:06 AM1/13/14
to jenkins...@googlegroups.com

Mounted shares can't be used by services unless the service is the one that mounts it. This is a known Windows problem if you search around. You'll have to mount the share via a bat command or something.

--
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 jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages