持续集成(持续构建)服务器luntbuild的一些配置细节

安装(官方文档参见http://luntbuild.javaforge.com/docs/installguide/installguide.html#installer):

1、下载一份luntbuild-xxx-installer.jar,然后java -jar luntbuild-xxx-installer.jar 运行安装向导;

2、安装过程中指定数据库属性、deploy位置,应该不会有问题;

3、到lunt_home/db找到对应数据库的脚本,建库、建表;

4、启动tomcat(如果第二步中没有指定部署位置,这时需要先copy lunt_home/luntbuild.war到tomcat/webapps);

5、启动后,你应该可以访问http://localhost:8080/luntbuild了,用户名/秘码都是luntbuild

配置:

6、登录进去后,点“Users”页签,新建一些用户,用户名最好和CVS一样,这样就免得设置luntbuild登录用户与CVS用户的对应关系了;

7、登录进去后,点“Projects”页签,新建一个项目,没什么好说的,填个名字就可以,其他的后面在惠来设置;

8、选中刚建好的项目,点“ VCS adaptors”页签,新建一个CVS适配器,仿照如下填写

Cvs root=":pserver:vli@192.168.0.140:/ciq_epayment"

Cvs password="****"

Is cygwin cvs?=" yes'

Disable "-S" option for log command?=" yes"

Disable history command?=" yes"

Path for cvs executable=" C:/Program Files/GNU/WinCvs 1.3"

9、新建modules如下:

Source path="ciq_epayment/src/ciq"

10、点“ Builders”页签,新建一个Ant Builder,仿照如下填写:

Build script path="ciq_epayment/src/ciq/build.xml"

11、点“Schedules”页签,新建一个Ant Builder,仿照如下填写:

Next build version:Project1-${#currentDay=system.(year+"-"+month+"-"+dayOfMonth), #lastDay=project.var["day"].setValue(#currentDay), #dayIterator=project.var["dayIterator"].intValue, project.var["dayIterator"].setIntValue(#currentDay==#lastDay?#dayIterator+1:1), #currentDay}.${project.var["dayIterator"]}

Trigger type="simple"

Repeat interval(minutes)="10"

Build necessary condition="vcsModified or dependencyNewer"

Associated builders:选择刚建好的builder

Label strategy:选"lable if success"

其他属性都用缺省的;

12、点"Properties"页签,设置系统属性:

Url to access luntbuild servlet:http://192.168.0.1:8080/luntbuild/app.do

SMTP user、SMTP password、Email address of the sender都设置好,系统就可以发诱奸通知了,前面的url将出现在正文中,所以需要根据你的网络拓扑酌情设置;

其他属性都可以顾名思义,可以不设;
--------------------------------------------------------------------------------

发不出邮件的问题:
When a build finishes, you get the following error message:
NoSuchProviderException: smtp...

This can be solved by removing activation.jar and mail.jar from common/lib directory. After removing the two files, you will need to restart JIRA.

这是google到的解决JIRA类似问题的办法,这里也适用。
 

摘自http://daquan198163.javaeye.com/blog/28689

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值