Multiple or generic Subversion Repositories configuration

Hi all,

in the process of integrating the SVN plugin I was wondering if there was a way to do the configuration more generic.

As it seems now I have to configure all of our >100 repositories seperatly, although they are on the same server - is there a way to reduce that configuration effort?

To be more clear, this is what the two configurations for the repositories "foo" and "bar" look like:

Repository Root: http://svn.internal.lan/foo/
Changeset Format: http://svn.internal.lan:8080/repos/foo/info?revision=${rev}
File Added Format: http://svn.internal.lan:8080/repos/foo/goto/${path}?revision=${rev}
File Modified Format: http://svn.internal.lan:8080/repos/foo/diff/?entries=${path}@${rev-1}&entries=${path}@${rev}
File Replaced Format: http://svn.internal.lan:8080/repos/foo/goto/${path}?revision=${rev}
File Deleted Format: http://svn.internal.lan:8080/repos/foo/goto/${path}?revision=${rev-1} 

Repository Root: http://svn.internal.lan/bar/
Changeset Format: http://svn.internal.lan:8080/repos/bar/info?revision=${rev}
File Added Format: http://svn.internal.lan:8080/repos/bar/goto/${path}?revision=${rev}
File Modified Format: http://svn.internal.lan:8080/repos/bar/diff/?entries=${path}@${rev-1}&entries=${path}@${rev}
File Replaced Format: http://svn.internal.lan:8080/repos/bar/goto/${path}?revision=${rev}
File Deleted Format: http://svn.internal.lan:8080/repos/bar/goto/${path}?revision=${rev-1}

The question is, whether there is a way to configure this with just one entry?

Thanks in advance,
Thomas

2 answers

1 accepted

You could use the subversion-jira-plugin.properties file in order to load the 100+ repositories at once.

In order to generate the the properties file content, it would be very easy by using Excel:

(1) type the 100+ repository names in one column (foo, bar,..)

(2) type the configuration of one repository only referecing its name from the previous colum (1),

(3) drag the repository configuration (2) to get the 100+ configurations

(4) copy and paste them into the properties file

(5) ensure that no any repository configuration is present on JIRA (to avoid the plugin ignores the properties file)

(6) re-start JIRA in order changes to take effect

Long time ago we have implemented patch to jira-subversion-plugin to read all repositories in single subversion parent and fill into the list using template. It was in version before GUI was available.

All my effort is available in SVN-35.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

28,253 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you