Jenkins salve Windows7配置

Jenkins slave Windows7下的环境配置

参考文献:
https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines
http://www.cnblogs.com/juddhu/archive/2013/07/18/3198191.html
http://www.cnblogs.com/juddhu/archive/2013/07/18/3198191.html
http://www.cnblogs.com/dubing/p/3628851.html

常见问题:
https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM

1、环境准备

a、windows要开启Remote Registry与Windows Management Instrumentation服务----未做

b、修改安全策略

我系统是英文的,如果是中文系统,翻译为中文,相对应的查找并修改。

Administrative Tools>Local Security Policy>Local Policy>Security Policy>Network access: Sharing and security model for local accounts

修改为Classic(经典)

c、禁用放火墙

d、window2008系统注册表越狱(高版本的win)

需要修改regedit中HKEY_CLASSES_ROOT\CLSID\{76A64158-CB41-11D1-8B02-00600806D9B6}的权限,windows2008不再给Administrators完全控制权。

下载SetACL.exe,下载地址:
http://files.helgeklein.com/downloads/SetACL/current/SetACL%20(executable%20version).zip

set_wmi_reg_acl.cmd

SetACL.exe -on "HKEY_CLASSES_ROOT\CLSID\{76A64158-CB41-11D1-8B02-00600806D9B6}" -ot reg -actn setowner -ownr "n:Administrators"
SetACL.exe -on "HKEY_CLASSES_ROOT\CLSID\{76A64158-CB41-11D1-8B02-00600806D9B6}" -ot reg -actn ace -ace "n:Administrators;p:full"

以超级管理员身份执行这个cms,就会把owner与完全控制权限授予Administrators组

《四》提示JDK没有安装
下载JDK最新版本安装后,参照http://www.cnblogs.com/dubing/p/3628851.html进行设置JDK环境变量。
Connecting to wangsf-PC
Checking if Java exists

java -version returned 1.8.0.
Installing the Jenkins slave service
Copying jenkins-slave.exe
Copying slave.jar
Copying jenkins-slave.xml
Registering the service

ERROR: Failed to create a service: Status Invalid Service Account

设置中改成本地系统账号后通过。

你可能感兴趣的:(自动化脚本,项目管理)