当前位置: 首页 > 工具软件 > LuntBuild > 使用案例 >

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

沈淇
2023-12-01

安装(官方文档参见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

 类似资料: