Win7 Jenkins Slave 踩坑

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Jasonliujintao/article/details/83546192

Jenkins 添加Win7 Slave

最近在添加Jenkins 的Win7 Slave 过程中遇到了几个坑,费了不少时间查问题。这里统一汇总一下,希望给遇到此类问题的人一些参考。
大部分问题都能从下面的官网参考地址中找到答案。
官网参考地址:https://wiki.jenkins.io/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM

Win7 默认不开启 Remote Registry 服务

  1. 当Win7 重启之后,需要手动的右键->计算机->管理->服务和应用程序->服务->Remote Registry 打开这个服务。

Access is denied. [0x00000005]

Jenkins 官网提供的解决方案不生效的情况下可以试试下面这种方案
我遇到的情况就是下面这个方案解决的。
另外一个解决方案(实际可以解决启动问题)

  1. Launch ‘regedit’
  2. Find (Ctrl+F) the following registry key: “{76A64158-CB41-11D1-8B02-00600806D9B6}” (it’s in HKEY_CLASSES_ROOT\CLSID)
  3. Right click and select 'Permissions’Right click and select 'Permissions’Change owner to administrators group (Advanced…).
  4. Change permissions for administrators group. Grant Full Control.
  5. Change owner back to TrustedInstaller (user is on local machine: “NT Service\TrustedInstaller”)Change owner back to TrustedInstaller (user is on local machine: “NT Service\TrustedInstaller”)

Jenkins 配置错误

通过 jenkins 启动节点的时候报用户权限错误。
节点中需要选择:Use Local System User
启动之后Win7 节点就可以正常运行了

猜你喜欢

转载自blog.csdn.net/Jasonliujintao/article/details/83546192
今日推荐