腾讯微群加入QQ群

 找回密码
 加入我们

!connect_header_login!

!connect_header_login_tip!

搜索
查看: 4830|回复: 0

JIRA SVN 整合 集成

[复制链接]
发表于 2012-6-27 18:53:55 | 显示全部楼层 |阅读模式


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


  这里也可以下载http://repository.atlassian.com/ ... ugin/distributions/

2、下载svn插件后,按照README里面(readme.txt有详细说明)把lib下的三个jar包放到jira的WEB-INFlib下(我的目录是D:Personal SoftwareProjectManagerAtlassianJIRA 4.2.1-b588atlassian-jiraWEB-INFlib)
3、把subversion-jira-plugin.properties放到jira的WEB-INFclasses下(我的目录是D:Personal SoftwareProjectManagerAtlassianJIRA 4.2.1-b588atlassian-jiraWEB-INFclasses)
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. SVN Repo
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  选项中看到提交的信息。










本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?加入我们

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|手机版|Archiver|小黑屋|一起疯|苦咖啡 ( 新ICP备12000197号  

GMT+8, 2018-5-20 22:01 , Processed in 0.079973 second(s), 14 queries , Memcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表