【发布时间】:2012-05-04 23:06:19
【问题描述】:
我的 Jenkins 服务器在 Windows 2008 服务器上的 Tomcat 中运行。 我在CentOS上搭建了NFS服务器,Win2008服务器可以通过mount命令访问NFS共享文件夹。我在 Windows 上以管理员用户身份运行时对其进行了测试。我将该文件夹作为 Z 驱动程序安装在 Windows 2008 服务器上。 但是我在 Jenkins 的工作说它找不到 Z 驱动程序,我猜 Jenkins 网络应用程序可能没有足够的权限来访问 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 进程?
-
我刚刚安装了一个 windows 原生 jenkins,它以管理员帐户作为 windows 服务运行。