博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Step by step guide to set up master and slave machines(转)
阅读量:6098 次
发布时间:2019-06-20

本文共 2288 字,大约阅读时间需要 7 分钟。

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 ().
      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

 

转载地址:http://igwza.baihongyu.com/

你可能感兴趣的文章
注解开发
查看>>
如何用 Robotframework 来编写优秀的测试用例
查看>>
Django之FBV与CBV
查看>>
Vue之项目搭建
查看>>
app内部H5测试点总结
查看>>
Docker - 创建支持SSH服务的容器镜像
查看>>
[TC13761]Mutalisk
查看>>
三级菜单
查看>>
Data Wrangling文摘:Non-tidy-data
查看>>
加解密算法、消息摘要、消息认证技术、数字签名与公钥证书
查看>>
while()
查看>>
常用限制input的方法
查看>>
Ext Js简单事件处理和对象作用域
查看>>
IIS7下使用urlrewriter.dll配置
查看>>
12.通过微信小程序端访问企查查(采集工商信息)
查看>>
WinXp 开机登录密码
查看>>
POJ 1001 Exponentiation
查看>>
HDU 4377 Sub Sequence[串构造]
查看>>
云时代架构阅读笔记之四
查看>>
WEB请求处理一:浏览器请求发起处理
查看>>