我的 Jenkins 服务器在 Windows 2008 服务器上的 Tomcat 中运行。
我在CentOS上搭建了一个NFS服务器,Win2008服务器可以通过mount命令访问NFS共享文件夹。我在 Windows 上以管理员用户身份运行时对其进行了测试。我将该文件夹作为 Z 驱动程序安装在 Windows 2008 服务器上。
但我在 Jenkins 的工作说找不到 Z 驱动程序,我猜 Jenkins Web 应用程序可能没有足够的权限来访问 Z 驱动程序。请查看 Jenkins 的错误消息
控制台输出:
Started by user anonymous
Building in workspace C:\.jenkins\workspace\upland-install
[upland-install] $ cmd /c call "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\hudson4487584210513580576.bat"
C:\.jenkins\workspace\upland-install>rd d:\tmp\upland_dist /s /q
C:\.jenkins\workspace\upland-install>xcopy Z:\upland_release\364 d:\tmp /S
**Invalid drive specification**
0 File(s) copied
如何解决这个问题?将 Jenkins 安装为 Windows 服务?
几个解决方案:
- 您需要在安装驱动器的同一用户上下文中运行 Jenkins 进程。这可行,但并不总是所需的解决方案。
- 在 Jenkins 从属设备上运行作业,该从属设备在具有已安装驱动器的用户上下文中启动。如果从机不可用,则并不总是可能。
- Use the 通过 CIFS 插件发布
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)