1. Create a new slave node on the Jenkins server
Only one of the above needs to be emphasized, that is, "Launch method", we have chosen "Launch slave agent via Java Web Start", this way is recommended to use the best on Windows. The following introduction is also aimed at this launch pattern.
Detailed steps for this configuration slave can be found in this place if necessary: https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+ Up+master+and+slave+machines (This can be said to be the official most privileged guideline).
2. Slave configuration
When you click on the job that is bound to this machine to build, you will find an error, as follows:
So, we're going to do slave configuration and follow the prompts to download the file
Then follow the instructions in Figure 1 to execute the command
Java-jar Slave.jar-jnlpurl Http://192.168.5.30:8080/computer/win10-sign/slave-agent.jnlp-secret F5b449d6b2148c9592d2a34203b10817ef1fd00727552ee17600cbd93b3751b7
And look at the slave on Jenkins that's been connected successfully.
3, maintain the slave has been connected state
If you want to keep through the JNLP agent connection, you have to run the following command, if you close it will appear at the beginning of the error diagram of the problem
So how do you keep the process running, so I want to run this bat with my system's own task Scheduler to keep him running?
After startup, the task Manager will see that the process is running and the connection will fail once the process is closed
Jenkins Configuration Slave node (WIN10 system)