The Source for Java Technology Collaboration
User: Password:



Kohsuke Kawaguchi

Kohsuke Kawaguchi's Blog

Hudson 1.91 and FishEye/ViewVC integration

Posted by kohsuke on March 26, 2007 at 05:56 PM | Comments (12)

Matt Raible asked me to work on a FishEye plugin for Hudson in my recent Hudson-related blog entry. Incidentally, my colleague Rajiv has been also asking for this feature (of being able to link to SCM browsers like FishEye, ViewCVS, etc) — so much so that he filed the same RFE twice!

So I'm happy to announce that this long-standing RFE since August 2005 is finally implemented in the latest Hudson 1.91 (changelog.) It comes with FishEye, ViewCVS, and ViewSVN support. (Normally I'd do FishEye in a plugin, but this feature has such a small UI surface that I thought it's OK to do so in the core.)

To configure this, go to the project configuration, select the SCM browser type you have, then enter the URL of the site. Just to show that I did my due dilligence, the screenshot shows what happens if you make a typo:

viewcvs2.png

With that, you'll now see links to various parts of the SCM browsers from changelog. I haven't figured out if they do, but if those repository browsers support has the JavaScript API, I can show the diffs inline and do other clever stuff.

viewcvs1.png

It's very common to have multiple jobs that work with the same Subversion/CVS repositories, so as long as one of those projects are configured, the other projects will automatically pick up the setting. That's why it's called "(auto)", not "(none)". So there's no need to go through all projects individually.

Finally, as with everything else in Hudson, this is extensible. So a plugin can be written to make Hudson support other kinds of SCM browsers. I'm planning to write one for java.net SCM browser, so if you are interested in supporting other kinds, please let me know and I can help you.


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first)

  • Very cool - thanks Kohsuke! Unfortunately, I discovered a bug - it looks like you need to format the numbers so they don't have a comma in them. If you look at:
    http://home.raibledesigns.com:8281/job/AppFuse/lastBuild/changes#detail0

    And click on any of the "diff" links, you'll get a 404:

    http://fisheye4.cenqua.com/browse/appfuse/trunk/web/common/src/main/webapp/scripts/global.js?r1=2,593&r2=2,594

    However, if you remove the comma from the r* parameters, everything works:

    http://fisheye4.cenqua.com/browse/appfuse/trunk/web/common/src/main/webapp/scripts/global.js?r1=2593&r2=2594

    Posted by: mraible on March 26, 2007 at 07:48 PM

  • Grr. Silly MessageFormat class...

    Posted by: kohsuke on March 26, 2007 at 09:44 PM

  • Nice! And since Cenqua provides free FishEye hosting for any java.net hosted project, this feature can be of immediate use for almost any java.net project. :)

    Posted by: vsizikov on March 27, 2007 at 08:44 AM

  • Thanks, Kohsuke!
    It would be nice to have Trac Repository Browser support.
    I may take a shot at adding it. Would you rather see it as part of the
    existing trac plugin or in a separate plugin?

    Posted by: bradfritz on March 27, 2007 at 09:49 AM


  • Matt — Pushing 1.92 to fix the problem right now.

    Vladimir — Do you know who I ask to get Hudson CVS up at FishEye?

    bradfritz — Yeah, if you can try to work on it, that would be wondeful. I'm happy to pitch in for a help, but I'd very much like someone else to drive it. And yes, I think it makes sense to do it in the trac plugin. We should talk more at the users list.

    Posted by: kohsuke on March 27, 2007 at 03:55 PM

  • What abou multi user support? It wasn't present when I checked Hudson last time (2-3 months ago)

    Posted by: spk on March 28, 2007 at 06:02 AM

  • What do you mean by the multi-user support?

    Posted by: kohsuke on March 28, 2007 at 09:35 AM

  • Kohsuke, you can get all the info on how to request free FishEye hosting here: http://partners.java.net/cenqua/

    Posted by: vsizikov on March 29, 2007 at 11:00 AM

  • Dunno, if you are still monitoring this entry...

    Multi-user support:

    Overall I mean user management:
    - creating and managing users
    - privileges system (which job/project can be monitored/edited)
    - link between Hudson account and SCM account per project

    Explaining last one:

    In some project we got broken build. Hudson checks, what commits were done after last successfull build, extracts authors and (if they are linked to Hudson accounts) notify them by email/IM about issues.

    Posted by: spk on April 19, 2007 at 06:12 AM


  • I see what you mean, and I believe that's already filed in the issue tracker. It's just not of very high priority to me.


    Being able to run a build means having full access to the Hudson system, since they run under the same user as far as OS is concerned. So the added security mechanism in Hudson doesn't really protect all that much from a determined attacker.


    Being able to tie SCM users with user account would have additional benefits (like sending notification in a personalized way), so I think that would have a higher priority.

    Posted by: kohsuke on April 19, 2007 at 10:26 AM

  • Hi Kohsuke

    When you say ViewSVN do you mean viewsvn.berlios.de ?

    Googling ViewSVN brings up couple different hits so I'm not sure if I'm trying the correct one. Wih the one from berlios I don't seem to be able to get it to work properly - I'm starting to think I might be using wrong ViewSVN.

    thank you!

    Posted by: stanoislav on May 28, 2007 at 07:07 PM

  • I believe it's the one used in http://svn.apache.org/viewvc/ , and so probably the name "ViewSVN" is not adequate.

    Posted by: kohsuke on May 31, 2007 at 11:51 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds