Step by step guide to set up master and slave machines(转)
2024-09-19 01:13:22
Note: There is no need to install Jenkins on the slave machine. |
- On your master machine go to Manage Jenkins > Manage Nodes.
- New Node --> Enter Node Name.
- Select Dumb Slave --> Press OK.
- Fill out the following:
- Set a number of executors (one or more) as needed.
- Set a Remote FS Root, a home directory for the master on the slave machine.
- For a Windows slave, use something like: "C:\Jenkins\"
- TODO: add details.
- Select the appropriate Usage setting:
- For an additional worker: Utilize this slave as much as possible
- For specialized jobs: Leave this machine for tied jobs only
- Launch Method:
- An easy way to control a Windows slave is by using Launch slave agents via Java Web Start (Recommended for Windows)
- TODO: add steps for other methods.
- Availability --> Keep this slave online as much as possible
- TODO: add details for each option.
- Press OK.
- Now you need to connect your slave machine to the master using the following steps.
- Open a browser on the slave machine and go to the Jenkins master server url (http://yourjenkinsmaster:8080).
- 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.
- Click on the Launch button to launch agent from browser on slave.
- Run the program.
- 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, ...)
- 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, ...)
- Now you should see the Slave machine connected under Nodes.
- If you want the service to run on start-up of the slave machine do the following (Windows only directions):
- In the Slave agent program running on your slave machine,
- click File --> Install as Windows Service.
Note that this feature requires ".Net Framework 3.5" - Start, type Services and Select the Services program.
- Find Jenkins Slave in the list, Double click to open.
- Select Startup type --> Automatic.
- Go to the Log On tab, change the Log on as to a user of your choice (Special user account Jenkins recommended).
- 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
最新文章
- SpringMVC中的异常处理集锦
- js 倒计时点击和当前时间
- 联想Y50p预装win8系统改为win7
- Spring MVC笔记 使用JdbcTemplate
- $.getJSON异步请求和同步请求
- 配置tomcat,java运行环境
- VMware-workstation-full-10.0.3-1895310 CN
- 【BZOJ】【1046】【HAOI2007】上升序列
- 51nod1295 XOR key
- Mac操作系统常用快捷键
- Mysql查询库、表存储量(Size)
- 南京邮电大学java第三次实验报告
- static 关键字和类的加载顺序
- Extjs 设置GridPanel单元格可选择高兼容写法
- 如何判断使用的是Lodop还是C-Lodop
- Statistics in Python
- Python调用sqlAlchemy
- Flask之before_request、after_request
- php -- 连接Mysql 数据库
- IOS高访微信聊天对话界面(sizeWithFont:constrainedToSize和stretchableImageWithLeftCapWidth的使用)
热门文章
- bootstrap固定响应式导航
- Task线程 同时执行多个任务
- 优雅的python
- 【转】 利用spring的profile切换不同的环境
- Oracle 如何写出高效的 SQL
- PHP 8大安全函数
- HTML5 标准属性 NEW:HTML 5 中新的标准属性。 注释:HTML 4.01 不再支持 accesskey 属性:
- YIi配置debug工具、yii配置gii工具
- CentOS 6.5(64bit)安装GCC4.8.2+Qt5.2.1(替换GCC的链接库)
- QStringLiteral的两篇外文解释(编译期转换成QString)