JIRA SVN 整合 集成

JIRA SVN 整合 集成  


1、成功安装JIRA后,去官网查看与安装的jira版本相兼容的svn的plugin版本并下载

  这里也可以下载http://repository.atlassian.com/atlassian-jira-subversion-plugin/distributions/
2、下载svn插件后,按照README里面(readme.txt有详细说明)把lib下的三个jar包放到jira的\WEB-INF\lib下(我的目录是D:\Personal Software\ProjectManager\Atlassian\JIRA 4.2.1-b588\atlassian-jira\WEB-INF\lib)
3、把subversion-jira-plugin.properties放到jira的\WEB-INF\classes下(我的目录是D:\Personal Software\ProjectManager\Atlassian\JIRA 4.2.1-b588\atlassian-jira\WEB-INF\classes)
4.下面是该配置文件的全部内容,其他位置不要改,只修改红色的部分: 
#----------------------------------------
# SUBVERSION PROPERTIES
#----------------------------------------

# NOTE: New from version 0.6 is support for multiple svn repositories. You can specify a default repository
# with the same syntax as before (svn.root = {svn root}, etc...). You can now specify additional repositories
# with: svn.root.1=..., svn.root.2=..., and so on. If you do not specify the username, password, view url,
# revision indexing, and revision indexing cache size for you additional repository entries then the values
# will be taken from your default repository entry (in this way you do not need to copy username and password
# over and over if they are the same). You should note that there is also a new property, svn.dislay.name
# which, when specified, will be shown on the log page and will identify the repository. If this property
# is not specifed then the svn root will be used.

# Full path to the Subversion root - at the moment svn://, svn+ssh://, http://, https:// and file:// are supported.
svn.root=http://xxx.xxx.xxx.xxx/svn/software/footstone/frame(这个一定要写对,对应于你提交代码的svn的地址,这个是我的,ip我省略了)
#svn.root=svn://localhost/repos
#svn.root=http://svn.apache.org/repos/asf/forrest/trunk
#svn.root=svn://svn.cargo.codehaus.org/cargo/scm/cargo/trunk
# Note that there are 3(!) slash characters after "file:"
#svn.root=file:///path/to/local/repo
# Note that this plugin now supports multiple repositories with the follwing syntax
#svn.root.1=//localhost/otherRepos

# Subversion repository display name - can include HTML, eg. <a href="http://svn.mycompany.com/">SVN Repo</a>
svn.display.name=你的库名(只是显示用,不重要)
#svn.display.name.1=My Other Repository

# Subversion username
svn.username=你的svn的用户名
#svn.username.1=mark

# Subversion password
svn.password=你的svn密码
#svn.password.1=icecream

# OpenSSH private key file
#Please note: The passphrase for the private key file is contained in "svn.password".
#svn.privatekeyfile=C:/PuTTY/privatekey.openssh
#svn.privatekeyfile.1=/home/subversion/privatekey.openssh

#----------------------------------------
# WEB LINKING
#----------------------------------------
# If you specify the URL of your ViewCVS/ViewSVN/Fisheye server, JIRA will hyperlink file entries,
# change lists and jobs to it. Format is configurable, with the following variables replaced at
# runtime:
# ${path} - Path to the changed file or directory
# ${rev} - Subversion revision of the change
# ${rev-1} - Subversion revision of the change, minus 1

#---------------------------------
# ViewCVS (1.0-DEV)
#---------------------------------
#linkformat.changeset=http://your.host.address/viewcvs?view=rev&rev=${rev}
#linkformat.file.added=http://your.host.address/viewcvs.cgi/${path}/?rev=${rev}&view=markup
#linkformat.file.modified=http://your.host.address/viewcvs.cgi/${path}/?rev=${rev}&view=diff&r1=${rev}&r2=${rev-1}&p1=${path}&p2=${path}
#linkformat.file.replaced=http://your.host.address/viewcvs.cgi/${path}/?rev=${rev}&view=markup
#linkformat.file.deleted=http://your.host.address/viewcvs.cgi/${path}/?rev=${rev-1}&view=markup
#linkformat.copyfrom=http://your.host.address/viewcvs.cgi/${path}?rev=${rev-1}&view=markup
# linkformat.changeset.1=...
# linkformat.file.added.1=...

#---------------------------------
# ViewVC 1.0.1
#---------------------------------
#linkformat.changeset=http://your.host.address/viewvc?root=svn&revision=${rev}&view=rev
#linkformat.file.added=http://your.host.address/viewvc${path}/?revision=${rev}&view=markup&pathrev=${rev}&root=svn
#linkformat.file.modified=http://your.host.address/viewvc${path}/?revision=${rev}&r1=${rev}&r2=${rev-1}&root=svn
#linkformat.file.replaced=http://your.host.address/viewvc${path}/?revision=${rev}&view=markup&root=svn
#linkformat.file.deleted=http://your.host.address/viewvc${path}?pathrev=${rev-1}&view=markup&root=svn
#linkformat.copyfrom=http://your.host.address/viewvc${path}?revision=${rev-1}&view=markup&root=svn

#---------------------------------
# ViewVC 1.0.3
#---------------------------------
#linkformat.changeset=http://192.168.0.100/viewvc?root=svn&revision=${rev}&view=rev
#linkformat.file.added=http://192.168.0.100/viewvc${path}/?revision=${rev}&view=markup&pathrev=${rev}&root=svn
#linkformat.file.modified=http://192.168.0.100/viewvc${path}/?revision=${rev}&r1=${rev}&r2=${rev-1}&root=svn
#linkformat.file.replaced=http://192.168.0.100/viewvc${path}/?revision=${rev}&view=markup&root=svn
#linkformat.file.deleted=http://192.168.0.100/viewvc${path}?pathrev=${rev-1}&view=markup&root=svn
#linkformat.copyfrom=http://192.168.0.100/viewvc${path}?revision=${rev-1}&view=markup&root=svn

#---------------------------------
# ViewVC 1.0.4
#---------------------------------
#linkformat.changeset=http://your.host.address/viewvc?root=svn&revision=${rev}&pathrev=${rev}&view=rev
#linkformat.file.added=http://your.host.address/viewvc${path}?root=svn&pathrev=${rev}
#linkformat.file.modified=http://your.host.address/viewvc${path}?root=svn&pathrev=${rev}&view=diff&r1=${rev}&r2=${rev-1}&diff_format=h
#linkformat.file.deleted=http://your.host.address/viewvc${path}?root=svn&pathrev=${rev-1}
#linkformat.copyfrom=http://your.host.address/viewvc${path}?root=svn&pathrev=${rev-1}&view=markup

#---------------------------------
# FishEye
#---------------------------------
linkformat.changeset=http://svn.atlassian.com/fisheye/changelog/public?cs=${rev}
linkformat.file.added=http://svn.atlassian.com/fisheye/viewrep/public${path}?r=${rev}
linkformat.file.modified=http://svn.atlassian.com/fisheye/viewrep/public${path}#${rev}
linkformat.file.replaced=http://svn.atlassian.com/fisheye/viewrep/public${path}#${rev}
linkformat.file.deleted=http://svn.atlassian.com/fisheye/viewrep/public${path}
linkformat.copyfrom=http://svn.atlassian.com/fisheye/viewrep/public${path}
#
#linkformat.changeset.1=...
#linkformat.file.added.1=...

#---------------------------------
# WebClient for SVN
#---------------------------------
#linkformat.changeset=http://your.host.address/svnwebclient/revisionDetails.jsp?location=/&rev=${rev}
#linkformat.file.added=http://your.host.address/svnwebclient/changedResource.jsp?location=/&url=${path}&rev=${rev}&action=add
#linkformat.file.modified=http://your.host.address/svnwebclient/changedResource.jsp?location=/&url=${path}&rev=${rev}&action=modify
#linkformat.file.replaced=http://your.host.address/svnwebclient/changedResource.jsp?location=/&url=${path}&rev=${rev}&action=replace
#linkformat.file.deleted=http://your.host.address/svnwebclient/changedResource.jsp?location=/&url=${path}&rev=${rev}&action=delete
#linkformat.copyfrom=http://your.host.address/svnwebclient/changedResource.jsp?location=/&url=${path}&rev=${rev}&action=add

#----------------------------------------
# REVISION INDEXING
#----------------------------------------
# if this property is uncommented and set to true, every revision in Subversion will be indexed
# and linked to any mentioned issue keys
revision.indexing=true
#revision.indexing.1=true

# the number of revisions to keep cached in memory for quick retrieval
# note: this number does not affect the speed with which revisions are looked up from the index (to get revisions for a given issue)
# this affects the speed at which the full content of those revisions are retrieved from SVN.
revision.cache.size=10000
#revision.cache.size.1=20000

5、登录jira,我们在JIRA中看到配置的svn插件信息

注意,如果状态是未激活,那就要点击后面的“编辑“按钮,对配置的内容进行修改,输入显示的库名、svn地址、用户名、密码,然后保存,如果配置正确,则状态为:激活状态,如上图;
在System --> Services 中可以看到如下信息,Delay中设置的是提交后多久可以看到提交的svn信息



6. 操作效果:在创建的问题的页面左上角的Key:为TEST- 1, 这个就是你在myeclipse中做提交时,如果是解决该问题,就在注释中先写上TEST-1 ,再提交,提交后SVN库中可以在该问题的Subversion Commits  选项中看到提交的信息。



 评论这张
转发至微博
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值