Jenkins adds Windows slave and Linux slave

Source: Internet
Author: User
Tags java web

Use Jenkins as an automated test execution platform to run automated cases. When many cases are required, or different types of systems (such as Linux and Windows) are required, multiple Jenkins nodes (or slave in master-slave) need to be built ).

I still like Linux. Generally, Jenkins's master is built on Linux, and some Linux or Windows slave is added to execute more tasks.

Because Jenkins is a Java program, you must first install the Java execution environment and configure the system environment variables in the added slave.

Adding Linux/Unix as slave is relatively simple. When adding a Node, select "Launch slave agents on Unix machines via SSH" and add the user name and password (root is not required) to the corresponding credentials.

You can select "Launch slave agents via Java Web Start" or "Let Jenkins control this Windows slave as a Windows service" to add Windows as slave. The latter may need some firewall policies; I generally choose the former "Launch slave agents via Java Web Start ".

Sometimes it is not so smooth, you may see the following prompt:



Follow the instructions on the Windows Server load balancer. However, if neither operation is successful, I directly click the "lanch" button in the figure to download a JNLP file, then start the agent with the javaws slave-agent.jnlp command.

Related Article

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.