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
|