Accessing linux mount location on windows through jenkins

雨燕双飞 提交于 2019-12-29 09:56:07

问题


I have path /opt/test/share mounted on ubuntu and shared with everyone using samba. I have mapped Z: drive on windows to above path.

Now, If I do cd Z:/ and then dir from local windows box, it works fine. But if I try to do same thing through jenkins it says "The system cannot find the path specified"

Please help.


回答1:


Is Jenkins running on the Windows machine as you or as a Windows Service. Mounting in Windows is user dependent.

If you are running Jenkins as a Service on Windows, you will need to explicitly tell "NT AUTHORITY\SYSTEM" account to mount the drive. The page "How to map network shares into drives to a Windows service permanently" should help you set up the mount.



来源:https://stackoverflow.com/questions/23993445/accessing-linux-mount-location-on-windows-through-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!