詹金斯无法访问已安装的驱动程序 [英] Jenkins can't access mounted driver

查看:155
本文介绍了詹金斯无法访问已安装的驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Jenkins服务器在Windows 2008服务器上的Tomcat中运行. 我已经在CentOS上设置了NFS服务器,Win2008服务器可以通过mount命令访问NFS共享文件夹.我在Windows上以管理员用户身份运行时对其进行了测试.我将文件夹安装为Windows 2008服务器上的Z驱动程序. 但是我在詹金斯(Jenkins)的工作说它找不到Z驱动程序,我想詹金斯(Jenkins)Web应用程序可能没有足够的权限来访问Z驱动程序.请查看詹金斯(Jenkins)的错误消息

My Jenkins server is running in Tomcat on Windows 2008 server. I have set up a NFS server on CentOS, Win2008 server can access the NFS shared folder via mount command. I tested it when running as administrator user on Windows. I mount the folder as Z driver on Windows 2008 server. But my job in Jenkins said it can't find the Z driver, I guess Jenkins web app might have not the enough permission to access Z driver. Please see the error message from 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服务吗?

How to fix this problem? Install Jenkins as a windows service?

推荐答案

几个解决方案:

  1. 您需要在与安装驱动器相同的用户上下文中运行Jenkins进程.这可行,但并不总是所需的解决方案.
  2. 在已安装驱动器的用户上下文中启动的Jenkins从属服务器上运行作业.如果从属计算机不可用,则并非总是可能.
  3. 使用通过CIFS发布插件
  1. You need to run your Jenkins process in the same user context that you mounted the drive in. This works, but isn't always the desired solution.
  2. Run the job on a Jenkins slave that is started in the context of the user with the mounted drive. Not always possible if slave machines aren't available.
  3. Use the Publish Over CIFS plugin

这篇关于詹金斯无法访问已安装的驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆