通过jenkins访问Windows上的linux挂载位置

通过jenkins访问Windows上的linux挂载位置

本文介绍了通过jenkins访问Windows上的linux挂载位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ubuntu上安装了路径/opt/test/share,并使用samba与所有人共享.我已将Windows上的Z:驱动器映射到上述路径.

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.

现在,如果我先执行cd Z:/,然后再从本地Windows框中执行dir,则工作正常.但是,如果我尝试通过詹金斯做同样的事情,它会说系统找不到指定的路径"

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"

请帮助.

推荐答案

Jenkins是否以您的身份或Windows服务的身份在Windows计算机上运行.在Windows中挂载取决于用户.

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

如果您在Windows上运行Jenkins即服务,则需要明确告诉"NT AUTHORITY \ SYSTEM"帐户来安装驱动器.页面"如何将网络共享永久映射到驱动器中的Windows服务中"将有助于您设置安装.

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.

这篇关于通过jenkins访问Windows上的linux挂载位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 23:00