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

本文共 2340 字,大约阅读时间需要 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

 

转载于:https://www.cnblogs.com/softidea/p/5603261.html

你可能感兴趣的文章
我的Android进阶之旅------>Android系统设置默认来电铃声、闹钟铃声、通知铃声
查看>>
拜访--美团笔试题 (动态规划)
查看>>
iOS speex
查看>>
模块和包
查看>>
js_js流程控制
查看>>
asp.net mvc全局错误处理
查看>>
[摘录]第四章 工作本身就是一种激励
查看>>
【目录】java学习路径
查看>>
11G、12C Data Guard Physical Standby Switchover转换参考手册
查看>>
root.sh脚本支持checkpoints文件实现重复运行
查看>>
Algs4-2.4.20证明:基于下沉的堆构造方法的比较次数、交换次数
查看>>
16进制的简单运算http://acm.nyist.net/JudgeOnline/problem.php?pid=244
查看>>
leetcode3. Longest Substring Without Repeating Characters
查看>>
Jmeter之Bean shell使用
查看>>
C#中泛型的使用笔记
查看>>
【bzoj4009 hnoi2015】接水果
查看>>
@property专题
查看>>
LNMP结合discuz的配置
查看>>
js中ul与li的使用
查看>>
实验二
查看>>