[代码跟踪]jira整合sventon

Posted on Wed 19 August 2009 in 我用(IT)

Sventon Can  Integrate with JIRA, Hudson, Luntbuild and TortoiseSVN
www.sventon.org

- 操作环境

sventon 2.1.3
Jira 3.13.4-#354

- Add a Repository first


1. Browse $Context/repos/configlogin
enter password
2. Click "Add Another Repository"
3. 输入参数
这个界面很友好,Sample和Help都有
主要是三部分内容,svn地址、认证信息、应用信息(是否进行压缩、缓存)
4. Click "Complete setup and start browsing"
呵呵,这一步最关键了,如果不点一下就直接去浏览,就会提示密码不对,让人云山雾罩,不知如何是好。

一个不尽如人意的地方:svn地址只能之指到根路径,如果把svn多极化来使用的话,就得自己配置权限保证安全了,指得深没有用!

- Jira Integration
http://wiki.sventon.org/index.php?n=Main.Integrating
http://confluence.atlassian.com/display/JIRAEXT/JIRA+Subversion+plugin
以上分别来自sventon和Jira官方网站的说明,sventon的太简略了

1. 进入配置界面
管理 -> Global Settings -> Subversion Repositories
2. 点击“增加”
1)写一下用来显示的名字
觉得填写配置sventon时用的repo-name最好了

2)Subversion Repository Details
这块添得是svn的信息,写的时候忘掉sventon吧
还要配置一下是否使用缓存,如果用的话,需要一个给缓存使用的帐户

3)Web Linking
sventon上给出的格式是for 1.x的,2.x的可以猜出来
配置完这个,提示这个svn是actived,就ok了。
可以在svn提交一下带issue编号的,看看能不能进来。
#---------------------------------
# for Sventon V1.x
#---------------------------------
#linkformat.changeset=http://your.host.address/svn/"repo-name"/info?revision=${rev}
#linkformat.file.added=http://your.host.address/svn/"repo-name"/goto${path}?revision=${rev}
#linkformat.file.modified=http://your.host.address/svn/"repo-name"/diff/?entries=${path}@${rev-1}&entries=${path}@${rev}&style=sidebyside
#linkformat.file.replaced=http://your.host.address/svn/"repo-name"/goto${path}?revision=${rev}
#linkformat.file.deleted=http://your.host.address/svn/"repo-name"/goto${path}?revision=${rev-1}
#linkformat.copyfrom=http://your.host.address/svn/"repo-name"/goto${path}?revision=${rev-1}
#

#---------------------------------
# for Sventon V2.x
#---------------------------------
#View Format = http://your.host.address/svn/repos/"repo-name"/list/
#linkformat.changeset=http://your.host.address/svn/repos/"repo-name"/info?revision=${rev}
#linkformat.file.added=http://your.host.address/svn/repos/"repo-name"/goto${path}?revision=${rev}
#linkformat.file.modified=http://your.host.address/svn/repos/"repo-name"/diff/?entries=${path}@${rev-1}&entries=${path}@${rev}&style=sidebyside
#linkformat.file.replaced=http://your.host.address/svn/repos/"repo-name"/goto${path}?revision=${rev}
#linkformat.file.deleted=http://your.host.address/svn/repos/"repo-name"/goto${path}?revision=${rev-1}
#linkformat.copyfrom=http://your.host.address/svn/repos/"repo-name"/goto${path}?revision=${rev-1}
#