Adding other tools support in Hudson's rubyMetrics plugin 2

Posted by david

Ok, I have to admit it, I'm a lazy, but a good lazy, like my good friend Sergio says. I like to work as less as possible and this days while I wrote the new Flog support in the Hudson's rubyMetrics plugin I realized that I didn't want to copy the same code over and over again anymore.

So, I just added to the repository a ruby script to generate the basic skeleton for add every other tool support to the plugin. The script asks some questions and it generates basic classes that it needs to add support for that tool.

Still here? what are you waiting to add your favorite tool support to the plugin? You just need to follow this few steps:

1 Check the code out:


$ svn co https://svn.dev.java.net/svn/hudson/trunk/hudson/plugins/rubyMetrics

or


$ git clone git://github.com/calavera/rubyMetrics.git

2 Run the script:


$ ruby src/main/ruby/generator.rb

3 Go to the Publisher class and complete the perform method and go to the BuildAction view and complete the jelly template. Psss rcov, flog, rails stats or rails notes support can help you.

4 Test the plugin using maven, it launches a dedicated instance of hudson :S


$ mvn hpi:run

5 File a ticket in hudson's jira to the component RubyMetrics and attach your patch.

Btw, if you didn't notice yet, I set up a mirror of the project in github. Enjoy it.

Comments

Leave a response

  1. LookUpJanuary 07, 2010 @ 11:25 AM
    Anything to save a few steps! Thanks David
  2. Peter SteeleJune 04, 2010 @ 09:46 AM
    Only a few steps? I think its helping save a mass of steps. Thanks for sharing
Comment