Reference Link: https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines+on+Windows
1, create a new node
"System Management"-"Management Node"-"New Node"-enter "node name" and select "Permanent Agent" click "OK"
2, Configuring the node
On the Node configuration page, enter the following:
The number of *executors, 1 or more;
* The following directory on the input node, e.g. D:\jenkins;
*usage Select: Leave this machine fortied jobs only;
*lunch method Selection: Launch slave agents via Java Web Start ;
Note : If you do not have the "Launch slave agents via Java Web Start" option, please refer to: http://www.cnblogs.com/gaigaige/p/6809440.html
* Avaliablitiy Select:Keep This slave online as much as possible;
* Click Saveand the node creation is complete .
3. Log on to Jenkins Master on the machine that will run the agent , and go to "system Management"--"Manage Node"--click on the node and click Launch
After the connection is successful:
Refresh Agent Status:
4. Run the job on the agent
Add "tags" to the agent above to indicate the usefulness of this agent, while confirming the "Usage" option: "Allow only jobs that are bound to this machine"
The job changes in Jenkins are as follows:
Select restrict where this project can be run and enter the agent's label.
At this point in the build, the job will run on the machine where the agent is located ...
Jenkins configures the master and Agent (slave) on Windows