step1
Install Jenkins
https://jenkins.io/index.html
很多前人的经验中提到了关于将其安装为一个windows service 的操作
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service
NOTE: if you installed Jenkins using the windows installer, you shouldn't need to do anything else here because the windows installer automatically runs Jenkins as a windows service.
目前使用的版本为2.5以上, 已经支持自动安装为service, 直接下载安装即可,不再需要上面的步骤。
step2
Download JDK
http://www.java.com/en/download/manual.jsp, install on slave node.
step3
Set up master and slave
https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines
PS:
There is no "Dumb Slave" option anymore:
"Copy Existing Node" is a good choice.
In step 4, for "Remote FS Root" is very important. It's workspace for slave node; for "usage", I want job a run on slave node A, job b run on slave node B, so I choose "Leave this machine for tied jobs only". If you don't care on which slave node will job a run, that is job a choosees slave node to run randomly, "tilize this slave as much as possible " is ok.
In step 5.a,
do accessJenkins master server url (http://yourjenkinsmaster:8080) on the slave machine
, and then click on the
Launch
button.
I have experienced go to the url on the master machine. After installing JNLP, the small window with "connected" appeared, but no connection established because the master and slave are actually the same machine under such configuration.
In step 5.d, before you do that, please make sure java has been installed on the slave node.
PPS:
more about distributed builds - master/slave
https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds