Step by step guide to set up master and slave machines(转)

简介: Note: There is no need to install Jenkins on the slave machine. On your master machine go to Manage Jenkins > Manage Nodes.
Note: There is no need to install Jenkins on the slave machine.
    1. On your master machine go to Manage Jenkins > Manage Nodes.
    2. New Node --> Enter Node Name.
    3. Select Dumb Slave --> Press OK.
    4. Fill out the following:
      1. Set a number of executors (one or more) as needed.
      2. Set a Remote FS Root, a home directory for the master on the slave machine.
        1. For a Windows slave, use something like: "C:\Jenkins\"
        2. TODO: add details.
      3. Select the appropriate Usage setting:
        1. For an additional worker: Utilize this slave as much as possible 
        2. For specialized jobs: Leave this machine for tied jobs only
      4. Launch Method:
        1. An easy way to control a Windows slave is by using Launch slave agents via Java Web Start  (Recommended for Windows)
        2. TODO: add steps for other methods.
      5. Availability --> Keep this slave online as much as possible
        1. TODO: add details for each option.
      6. Press OK.
    5. Now you need to connect your slave machine to the master using the following steps.
      1. Open a browser on the slave machine and go to the Jenkins master server url (http://yourjenkinsmaster:8080).
      2. Go to Manage Jenkins > Manage Nodes, Click on the newly created slave machine. You will need to login as someone that has the "Connect" Slave permission if you have configured global security.
      3. Click on the Launch button to launch agent from browser on slave.
      4. Run the program.
        1. If you encounter connection issue, then you could enlarge the popup windows to see the master port used and check your network configuration (firewall, port forward, ...)
      5. Now you should see the Slave machine connected under Nodes.
    6. If you want the service to run on start-up of the slave machine do the following (Windows only directions):
      1. In the Slave agent program running on your slave machine, 
      2. click File --> Install as Windows Service. 

        Note that this feature requires ".Net Framework 3.5"
      3. Start, type Services and Select the Services program.
      4. Find Jenkins Slave in the list, Double click to open.
      5. Select Startup type --> Automatic.
      6. Go to the Log On tab, change the Log on as to a user of your choice (Special user account Jenkins recommended).
      7. Make sure that auto login is set for the slave machine for the user account, then the VM (or physical computer) should connect and be available when needed.

 

https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines

 

相关文章
|
Java jenkins 持续交付
Step by step guide to set up master and slave machines on Windows
Note: There is no need to install Jenkins on the slave machine. On your master machine go to Manage Jenkins > Manage Nodes.
1522 0
|
SoC
I.MX6 OTG set as slave device hacking
/****************************************************************************** * IMX6 OTG set as slave device hacking * 声明: * 1. 本代码解析使用了倒序的方式跟踪内核驱动代码,从驱动反推需求; * 2. 代码解析的目标是找到OTG设置成Host、Slave设备的宏定义; * 3. 根据2中的宏定义,看make menuconfig中是否存在可直接裁剪的选项。
886 0
|
1月前
|
存储 JavaScript 前端开发
Set、Map、WeakSet 和 WeakMap 的区别
在 JavaScript 中,Set 和 Map 用于存储唯一值和键值对,支持多种操作方法,如添加、删除和检查元素。WeakSet 和 WeakMap 则存储弱引用的对象,有助于防止内存泄漏,适合特定场景使用。
|
2月前
|
存储 Java API
【数据结构】map&set详解
本文详细介绍了Java集合框架中的Set系列和Map系列集合。Set系列包括HashSet(哈希表实现,无序且元素唯一)、LinkedHashSet(保持插入顺序的HashSet)、TreeSet(红黑树实现,自动排序)。Map系列为双列集合,键值一一对应,键不可重复,值可重复。文章还介绍了HashMap、LinkedHashMap、TreeMap的具体实现与应用场景,并提供了面试题示例,如随机链表复制、宝石与石头、前K个高频单词等问题的解决方案。
39 6
【数据结构】map&set详解
|
1月前
|
存储 缓存 Java
【用Java学习数据结构系列】HashMap与TreeMap的区别,以及Map与Set的关系
【用Java学习数据结构系列】HashMap与TreeMap的区别,以及Map与Set的关系
38 1
|
2月前
|
算法
你对Collection中Set、List、Map理解?
你对Collection中Set、List、Map理解?
37 5
|
2月前
|
存储 JavaScript 前端开发
js的map和set |21
js的map和set |21
|
2月前
|
存储 前端开发 API
ES6的Set和Map你都知道吗?一文了解集合和字典在前端中的应用
该文章详细介绍了ES6中Set和Map数据结构的特性和使用方法,并探讨了它们在前端开发中的具体应用,包括如何利用这些数据结构来解决常见的编程问题。
ES6的Set和Map你都知道吗?一文了解集合和字典在前端中的应用
|
3月前
|
存储 安全 Java
java集合框架复习----(4)Map、List、set
这篇文章是Java集合框架的复习总结,重点介绍了Map集合的特点和HashMap的使用,以及Collections工具类的使用示例,同时回顾了List、Set和Map集合的概念和特点,以及Collection工具类的作用。
java集合框架复习----(4)Map、List、set
|
3月前
|
Java
【Java集合类面试二十二】、Map和Set有什么区别?
该CSDN博客文章讨论了Map和Set的区别,但提供的内容摘要并未直接解释这两种集合类型的差异。通常,Map是一种键值对集合,提供通过键快速检索值的能力,而Set是一个不允许重复元素的集合。