SVN与Bugzilla整合—(三)Linux下用scmbug将subversion与bugzilla整合

上一篇 / 下一篇  2008-07-29 15:06:09 / 个人分类:原创

下载的rpm包有四个:

Scmbug-common

Scmbug-doc

Scmbug-server

Scmbug-tools

安装时提供docbook-utilsMail::sendmail模块,安装上即可.

注意:若安装tar,则运行以下命令:

bash$ ./configure

bash$ make

bash# make install-common

bash# make install-doc

bash# make install-tools

bash# make install-server

配置scmbug主要为以下几个部分:

(1)配置daemon.conf

安装完scmbug, scmbug自动安装在/etc/scmbug,进入该目录,修改daemon.conf文件:

首先确定bugzilla的安装目录路径

# Used for Bugzilla and RequestTracker.

#

# Path to the directory of the bugtracker sources providing an

# API that the daemon can use

installation_directory => ’/home/bugzilla/’

再确定bugzilla安装参数,bugzilla本地安装installed_locally设置为1

# Used only for Bugzilla.

#

# Flags whether the live bugtracker instance is installed

# locally on the same machine the daemon is running

installed_locally => 1,

最后修改mapping_regexes部分,设置enabled=>1,并且修改unix user mapping为邮件地址形式(由于bugzilla用户名为邮件地址),此处不设置的话会出现如下错误:

Scmbug error 77: The userlist mappings are enabled, but no mappings are configured.

(2)利用scmbug的命令scm_install_glue下载安装glue

首先确定scmbugserver开启,输入命令

#/etc/init.d/scmbug-server start

然后输入如下命令安装glue:

$ scmbug_install_glue --scm=Subversion \

--product=Finacingmanagemen --repository=file:///home/svnroot/repository/test \

--bug=770 --binary-paths=/bin,/usr/bin --daemon=192.168.1.222

注意:输入产品名称中间最好没有空格,否则报无效产品

出现以下信息

This is the installation scrīpt of the Scmbug glue.

The glue will be installed in repository: file:/// home/svnroot/repository/test

This is a repository for the Subversion SCM tool.

The product name in the bug tracking system is Finacingmanagement..

The integration glue will be committed against bug 770.

The IP address of the Scmbug integration daemon to contact is 192.168.1.222.

The binary paths used are: /bin,/usr/bin

-------------

Press Enter to continue or Ctrl-C to cancel

两次回车后安装完毕.

安装完毕后glue装在/ home/svnroot/repository/test/hooks/etc/scmbug/glue.conf

(3)由于subversion不能区分提交任务和创建tags或者branches.所以创建project时要设置subersion中的labeling directories, trunk directories.(建立project时详细描述)

 

最后一步,在SVN中将project文件夹配置属性,此项设置下回发篇详细的文章细说。


TAG: 原创

 

评分:0

我来说两句

日历

« 2024-04-28  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 17134
  • 日志数: 30
  • 书签数: 1
  • 建立时间: 2008-07-23
  • 更新时间: 2009-05-07

RSS订阅

Open Toolbar