Jenkins Configuration Slave node (WIN10 system)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.