Build a Hudson distributed Build Environment

Source: Internet
Author: User

Using Hudson to build a distributed build environment is very convenient, and the client does not need to perform too many operations, as long as it can execute java commands. Hudson is installed in master mode by default. The master is used as the master environment for Distributed building. The client does not need to install hudson and uses jnlp to establish a connection with the master.

 

1. Hudson-> System Management-> node management-> new node-> (enter the node name and select the "Dumb Slave" option)

2. Add the settings for creating a node on the Hudson Server:

1. of executors: number of executions, which can be configured as the number of CPUs

2. Remote FS root: Execution directory of the client hudson

3. Labels: label used to filter nodes in projects

4. Usage: Select "use this node whenever possible"

5. Launch method: use Launch slave agents via JNLP

6. Click Save.

3. Start the agent on the client and directly execute the following command:

Java-jar slave. jar-jnlpUrl
Http: // 192.168.0.110: 8080/hudson/computer/Jack/slave-agent.jnlp

4. After the client is started, you can view the connection on the server.

5. select the Job to be executed, check "Restrict where this project can be run", and add the corresponding node (corresponding to the Labels content when the node is created, if not set, it is the name of the node ).

6. Click build now to see that the task can be executed in a distributed environment.

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.