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

最新文章

  1. SpringMVC中的异常处理集锦
  2. js 倒计时点击和当前时间
  3. 联想Y50p预装win8系统改为win7
  4. Spring MVC笔记 使用JdbcTemplate
  5. $.getJSON异步请求和同步请求
  6. 配置tomcat,java运行环境
  7. VMware-workstation-full-10.0.3-1895310 CN
  8. 【BZOJ】【1046】【HAOI2007】上升序列
  9. 51nod1295 XOR key
  10. Mac操作系统常用快捷键
  11. Mysql查询库、表存储量(Size)
  12. 南京邮电大学java第三次实验报告
  13. static 关键字和类的加载顺序
  14. Extjs 设置GridPanel单元格可选择高兼容写法
  15. 如何判断使用的是Lodop还是C-Lodop
  16. Statistics in Python
  17. Python调用sqlAlchemy
  18. Flask之before_request、after_request
  19. php -- 连接Mysql 数据库
  20. IOS高访微信聊天对话界面(sizeWithFont:constrainedToSize和stretchableImageWithLeftCapWidth的使用)

热门文章

  1. bootstrap固定响应式导航
  2. Task线程 同时执行多个任务
  3. 优雅的python
  4. 【转】 利用spring的profile切换不同的环境
  5. Oracle 如何写出高效的 SQL
  6. PHP 8大安全函数
  7. HTML5 标准属性 NEW:HTML 5 中新的标准属性。 注释:HTML 4.01 不再支持 accesskey 属性:
  8. YIi配置debug工具、yii配置gii工具
  9. CentOS 6.5(64bit)安装GCC4.8.2+Qt5.2.1(替换GCC的链接库)
  10. QStringLiteral的两篇外文解释(编译期转换成QString)