持续集成(持续构建)服务器luntbuild的一些配置细节
2006-07-08 18:22
387 查看
安装(官方文档参见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类似问题的办法,这里也适用。
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类似问题的办法,这里也适用。
相关文章推荐
- 持续集成(持续构建)服务器luntbuild的一些配置细节
- 关于持续集成打包平台的Jenkins配置和构建脚本实现细节
- RTSP服务器配置细节注意(持续更新)
- 服务器迁移之debian重新配置Web服务的一些细节备忘
- ubuntu下配置android自动化测试环境+Jenkins持续构建
- Hudson 持续集成服务器的安装配置与使用
- gitblit系列七:使用Jenkins配置自动化持续集成构建
- 高通手机系统属性配置:system.prop----build.prop是所有安卓手机都有的一些配置信息。
- RedHat Linux服务器安全配置细节
- 做web应用测试的避免不了对服务器要有一些了解,尤其是性能测试,这里收集了tomcat中一些配置的含义:
- Go游戏服务器开发的一些思考(三十七):无缝世界场景构建与同步(四)
- 服务器配置python时一些问题的处理方法
- Windows2003服务器安全配置的一些思路
- 使用CMake构建Ogre工程文件时的一些小细节
- Nginx服务器中配置404错误页面时一些值得注意的地方
- 独立两套DJANGO+CELERY配置(生产+测试)时要注意的一些细节
- 从零开始构建支持TLS1.2的Web服务器Linux版(一) 配置JAVA环境
- 配置tomcat服务器虚拟目录,出现的一些问题
- jQuery 中一些细节知识点(本文会持续更新)
- 快速构建MMO服务器框架(六)asio稍微复杂一些的例子:高并发echo