Parse CVS changes to make links

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Parse CVS changes to make links

Bruno Bonfils-2
Hello hudson people,

first of all, very thanks for hudson. It's a very nice and very simple
product, but powerfull.

I use it to build a java project where developpers use Jira as Issue
tracker, since Jira have a nice version tracker module, most of CVS logs
of the project start with the number of related Jira issue.

I wonder how it's difficult to write a plugin (or hack Hudson) to parse
the CVS logs to make Jira Issue number clickable from the http
interface.

For example (1), a typical CVS log looks like :

-> ECA-338: first shot at configuring log4j on glassfish

I'll be very happy if the ECA-338 will be a HTTP link to
http://jira.primekey.se/browse/ECA-338 (a fixed string appended by a
pattern, like ECA-\d+ )

Do you think it's difficult to write such enhancement ?

Thanks you

References :

 1: http://lei.asyd.net/hudson/job/EJBCA/34/
--
http://asyd.net/home/   - Home Page
http://guses.org/home/  - French Speaking (Open)Solaris User Group

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Parse CVS changes to make links

Kohsuke Kawaguchi-2
Bruno Bonfils wrote:
> first of all, very thanks for hudson. It's a very nice and very simple
> product, but powerfull.

Thanks!

> I use it to build a java project where developpers use Jira as Issue
> tracker, since Jira have a nice version tracker module, most of CVS logs
> of the project start with the number of related Jira issue.
>
> I wonder how it's difficult to write a plugin (or hack Hudson) to parse
> the CVS logs to make Jira Issue number clickable from the http
> interface.

This is captured in issue #16 [1]. Once a extension point is ready, it
should be pretty straight-forward to do something like that. This is a
relatively high priority issue for me, because I have similar needs by
myself.

If I fix #16, would you be interested in writing a JIRA plugin?


The other thing I think it would be nice to do with JIRA is to update
the issue with the build number that incorporates the fix.


[1] https://hudson.dev.java.net/issues/show_bug.cgi?id=16
--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Parse CVS changes to make links

Bruno Bonfils-2
On lun 20 novembre, Kohsuke Kawaguchi wrote:
>
>
> This is captured in issue #16 [1]. Once a extension point is ready, it
> should be pretty straight-forward to do something like that. This is a
> relatively high priority issue for me, because I have similar needs by
> myself.

Thanks

>
> If I fix #16, would you be interested in writing a JIRA plugin?

Sure, I'll give a try at least :) But maybe the best idea is to create a
generic plugin to parse build output, with regex provided by hudson
administrator. It will be very easy to add hyperlink for bugzilla, Jira,
or any others trackers, and probably some others things.

Guess you provide the following configuration via hudson webui :

- Give the matcher :

  ECA-(\d+):
  #(\d+)
  [..]

and one action for the a href :

  http://jira.primekey.se/browse/ECA-$1
  https://hudson.dev.java.net/issues/show_bug.cgi?id=$1
  [..]

and another one action for the link title

  ECA-$1
  Bugzilla #$1

Maybe a combobox to choose the text to edit :

 - console output
 - changes

> The other thing I think it would be nice to do with JIRA is to update
> the issue with the build number that incorporates the fix.

Nice idea too


Thanks

--
http://asyd.net/home/   - Home Page
http://guses.org/home/  - French Speaking (Open)Solaris User Group

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]