Issue Details (XML | Word | Printable)

Key: CMMT-12
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Ferenc Kiss
Reporter: John O'Shea
Votes: 3
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
JIRA Commit Acceptance

Support multiple projects per repository (multiple project keys in one hook script)

Created: 07/Jun/07 06:42 AM   Updated: 08/Nov/07 06:48 AM
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.2
Security Level: public (Anyone can view the issue)

Time Tracking:
Not Specified

Environment: Subversion Repository containing resources for multiple JIRA projects

Labels:


 Description  « Hide
We have a SVN repository that contains resources for many projects. However, in the jira-client.pl script there is a $projectKey variable which is passed into the "commitacc.acceptCommit" XML/RPC call. This seems to imply that the plugin can only be used with repositories that relate to only one project.

Looking at the source for EvaluateService (1), it seems it might be possible to change this to support either a list of projects (comma separated) or to search all projects (if no project is specified at all).

(1) http://svn.atlassian.com/svn/public/contrib/jira/jira-commitacceptance-plugin/trunk/src/java/com/atlassian/jira/ext/commitacceptance/server/evaluator/EvaluateService.java



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Ferenc Kiss added a comment - 17/Jul/07 01:14 AM
Should there be AND or OR relationship?
Comment from Kevin Menard:

I'd say it should be an "OR" relationship. The crux of the matter is that it's fairly customary to have some sort of SVN root from which other projects are created. It can make configuration easier for a lot of tools. For example, ViewVC rewards users for having a common root, as does Subversion itself (see: SVNParentPath). In this case, we could have something like the following:

http://localhost/svn/root/www
http://localhost/svn/root/some_swing_app

On the filesystem, these may map to the repository at:

/svnroot/root/

"www" and "some_swing_app" have nothing to do with each other. Without a doubt, they'll each have their own projects in JIRA. However, since the repository is the common "root", the pre-commit hook needs to be able to handle both.


Mark Derricutt added a comment - 20/Aug/07 06:55 PM
The commit hook script could have easily have a dictionary of regex/project pairs which determine which project is used in the script - or even IF the script should run.