Luntbuild Manual

Luntbuild Manual

一、安装

1. linux环境

#cat /etc/issue

Red Hat Enterprise Linux AS release 4 (Nahant Update 4)

2. 以管理员root账号登录

3. 安装jdk

下载j2sdk-1_4_2_16-linux-i586.bin到/root/目录。

#cd /root

#mv j2sdk-1_4_2_16-linux-i586.bin /usr/java

#cd /usr/java

#sh j2sdk-1_4_2_16-linux-i586.bin

#vi .bash_profile

JAVA_HOME=/usr/java/j2sdk1.4.2_16

export JAVA_HOME

PATH=$JAVA_HOME/bin:$PATH:$HOME/bin

export PATH

4. 安装luntbuild

下载luntbuild-1.5.3.zip到/root/目录。

#cd /root

#unzip luntbuild-1.5.3.zip

#mv luntbuild-1.5.3 /opt/

5. 配置/opt/luntbuild/web/WEB-INF/web.xml

#vi /opt/luntbuild/web/WEB-INF/web.xml

Replace $INSTALL_PATH with your Luntbuild installation path (/opt/luntbuild here).

6. 配置/opt/luntbuild/web/WEB-INF/users.properties

#vi /opt/luntbuild/web/WEB-INF/users.properties

Replace luntbuild=luntbuild with your desired site administrator password in the format luntbuild=youradminpassword.

7. 启动luntbuild

#cd /opt/luntbuild/

#bin/luntbuild.sh localhost 8888 &

8. 关闭luntbuild

#cd /opt/luntbuild/

# bin/stop-luntbuild.sh localhost 8889 &

9. 在Properties(系统属性)页里设置下面属性的值

Work directory 为 /build/work

Publish directory为 /build/publish

SMTP host 为mail.yourdomain.com

二、配置Luntbuild的用户

1. 增加用户

在Users(用户) 页里点击new(新建)图标(该图标在该页的右上角),

Name

Can create project?

Password

Email

三、创建项目

1. 增加项目

在Project(项目)页里点击New Project(新建项目)图标(该图标在该页的右上角),

Name

Project admins

Project builders

Project viewers

Notification methods

Notification users

Variables

2. 配置项目的版本控制系统

选择“VCS Adaptors”控制面板标签

Version Control System

Cvs root

Cvs password

Quiet period

对于一个项目可以定义多个VCS连接。

3. 配置项目的模块

点击某个VCS定义页面里面的New Module(新建模块)图标

Source path

4. 配置项目的Builder

进入Builders编辑页面

Builder type Command builder

Name builder

Build command "${build.schedule.workingDir}/cvstest/Codes/build.sh"

Run command in directory cvstest/Codes

Builder type Command builder

Name ftp

Build command cp -a "${build.schedule.workingDir}/cvstest/Codes" "/ftp/${build.schedule.project.name}/${build.version}/"

Builder type Command builder

Name mk

Build command mkdir -p "/ftp/${build.schedule.project.name}/${build.version}/"

5. 配置项目的schedule

进入schedule编辑页面

Name test

Next build version cvstest-1-${project.var["versionIterator"].increaseAsInt()}

Work directory

转载于:https://my.oschina.net/tadcat/blog/150778

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值