Jenkins configures the master and Agent (slave) on Windows

Source: Internet
Author: User

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

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.