Installation about Windows Slave on Jenkins
来源:互联网 发布:电脑怎么优化显卡性能 编辑:程序博客网 时间:2024/06/05 02:44
参考:
一 创建新的Slave
注意Jenkins中slave称为note。 所以下面文章中的slave和node指的是一回事。
1)在Manage Jenkins-->Manage Nodes -->New Node下:输入Node Name,且选择Dumb Slave作为Slave的类型,然后OK。
2)在Slave的配置页面,输入如下:
*executors的数量,1或多个;
*输入Slave 上的跟目录,例如c:\jenkins;
*Usage选择:Leave this machine for tied jobs only;
*Lunch Method选择:Launch slave agents via Java Web Start ;
* Avaliablitiy选择:Keep this slave online as much as possible;
* 然后保存;
3)在slave所在的机器登录jenkins master,且进入Manage Jenkins-->Manage Nodes-->新建的Note,点击launch,然后安装slave为service如下:
4)安装成功后显示如下:
二 在slave上运行job
对上面的slave增加label,从而表示此slave的用处,且同时对uage选择leave this machine for tied jobs only:
对Jenkins 构建JavaHelloWorld中的job修改如下:
选择restrict where this project can be run 且输入note(slave)的label。
另外注意SVN的地址因该正确,jenkins会提示输入svn的用户名和密码。
此时job将会在slave所在的机器运行,当然build所需要的环境要在slave上配置好哦,运行如下:
注意: 对slave系统环境变量的修改,jenkins slave不会立即生效,需要重启jenkins slave service。 例如我在slave上装了ant,设置到path中后仍然找不到,需要restart jenkins slave service。
更多参考:
完!
- Installation about Windows Slave on Jenkins
- jenkins-slave service on windows
- Jenkins Installation on Redhat4
- Jenkins Installation on Redhat4
- Jenkins Windows slave节点部署
- Jenkins on Linux(Master) talk with Windows server 2012 R2 (Slave)
- Hadoop installation on windows
- jenkins下配置windows slave节点和mac slave节点
- Jenkins Windows master和Linux slave
- Jenkins的Windows Slave的配置
- Jenkins的Windows Slave的配置
- Jenkins的Windows Slave的配置
- Jenkins的Windows Slave的配置
- 在windows上创建jenkins slave
- Jenkins创建slave节点----Windows平台
- jenkins 运用Windows Slave执行 python程序
- jenkins 运用Windows Slave执行 python程序
- Jenkins(五)Windows的slave配置
- 利用net-snmp读取windows,linux,snmp设备数据(cpu,内存,网卡)
- 题目1051:数字阶梯求和
- 数据库分页语句(mysql,oracle,sqlserver,DB2)
- BaseServlet,让一个Servlet可以同时处理多个请求
- SQLSERVER常用操作
- Installation about Windows Slave on Jenkins
- 使用ampser集成工具启动 apache报错
- Android网络编程之Http通信
- thinkphp 模版引用
- 解决java.sql.SQLException: ORA-01460: java 将文件以流的形式写入大数 clob中,
- Google首席软件工程师Joshua Bloch谈如何设计一款优秀的API
- Using Condition Variables
- java中的网络通信编程之TCP篇
- jquery 描点平滑定位