Project

General

Profile

Hudson Plugin 0.1.0

Added by Toshiyuki Ando almost 15 years ago

hello.

Redmine Hudson Plugin 0.1.0

What's hudson?

Huson is application for Continuous Integration.
Easy install configuration, and good ui.

More detail Meet Hudson

Features

Show Job List

  • show name, description, latest build ( build number, result, date ) and health report
    • bulid number linked to build result page
  • click [Build Now] request hudson to build
    • can't use authentication
  • Mr. hudson appears ( sorry, not emotional )

Show Build History

click note icon, show build history

  • show build number, result, date
    • bulid number linked to build result page
    • console icon linked to console page

Settings

  • can choose job
  • compact mode
    show only job name and latest build

Todo

  • more emotional
  • use authentication

How To Get

Repository( goolecode )
Download

Demo

You can see this plugin on our site
r-labs Hudson

Tested on Redmine 0.8.3 and current trunk.
Check it out, Any feedback or thoughts on useful features are welcome!

Thanks.


Replies (132)

Hudson Plugin 1.0.3.1 released - Added by Toshiyuki Ando almost 14 years ago

Sorry, I added serious bug.
error occurred on issue page, when issues are related to Hudson build results.
1.0.3.1 fixed this problem.

Plugin Details

How to get

Changes

  • #318 (Defect) some tests failed
  • #316 (Defect) internal error occurres on issue page

RE: Hudson Plugin 0.1.0 - Added by Robert Gröber almost 14 years ago

Hi

we're running Redmine with current Hudson 1.353, but when accessing the Job List by the Hudson link in main menu, im getting:

 REXML::ParseException in HudsonController#index

#<REXML::ParseException: Missing end tag for 'description' (got "parameterDefinition")
Line: 
Position: 
Last 80 unconsumed characters:
<parameterDefinition><defaultParameterValue><value>lastStableBuild</value></defau>
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in `pull'
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:228:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/opt/redmine-0.9.3/vendor/plugins/redmine_hudson/app/models/hudson.rb:81:in `new'
/opt/redmine-0.9.3/vendor/plugins/redmine_hudson/app/models/hudson.rb:81:in `fetch_jobs'
/opt/redmine-0.9.3/vendor/plugins/redmine_hudson/app/models/hudson.rb:31:in `fetch'

The redmine_hudson plugin is the current version from svn (revision 486).

I'm pretty sure, that i've configured the hudson url somewhere, but cant find that anymore!

Please help!

robig

RE: Hudson Plugin 0.1.0 - Added by Toshiyuki Ando almost 14 years ago

Hi, Robert

Thanks for your reply.
Hudson's response seems to be ok.
But, there is a difference log(exception) and response.

Please let me know

  • settings for hudson url
  • url for access to hudson if you use "Plugin uses below url for access to hudson. Don't use above. ( for user )"

RE: Hudson Plugin 0.1.0 - Added by Robert Gröber almost 14 years ago

Please give me a hint where i can find that options (again). ;-)

Thanks
Robert

RE: Hudson Plugin 0.1.0 - Added by Toshiyuki Ando almost 14 years ago

Robert Gröber wrote:

Please give me a hint where i can find that options (again). ;-)

RE: Hudson Plugin 0.1.0 - Added by Robert Gröber almost 14 years ago

You're funny, how can I get there when i cant click on Hudson link in the project menu? (because of the exception i wrote)
I got the url out of your source: http://IP/hudson_settings/edit/PROJECT-ID
Thanks anyway ;)

The information you requested will be sent by mail.

Cheers
Robert

RE: Hudson Plugin 0.1.0 - Added by G. D. almost 14 years ago

Hi everyone,

I'm trying to setup Redmine + Hudson again and I'm facing a new error 500 inside Redmine. Here is the error:

Processing HudsonController#index (for 192.168.1.89 at 2010-05-05 10:51:47) [GET]
Parameters: {"action"=>"index", "id"=>"test-project", "controller"=>"hudson"}

ArgumentError (wrong number of arguments (1 for 2)):
vendor/plugins/redmine_hudson/app/models/hudson_job.rb:140:in `fetch_summary'
/usr/lib/ruby/1.8/rexml/element.rb:892:in `each'
/usr/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
/usr/lib/ruby/1.8/rexml/element.rb:892:in `each'
vendor/plugins/redmine_hudson/app/models/hudson_job.rb:134:in `fetch_summary'
vendor/plugins/redmine_hudson/app/models/hudson_job.rb:110:in `fetch_builds'
vendor/plugins/redmine_hudson/app/models/hudson.rb:87:in `fetch_buildresults'
vendor/plugins/redmine_hudson/app/models/hudson.rb:84:in `each'
vendor/plugins/redmine_hudson/app/models/hudson.rb:84:in `fetch_buildresults'
vendor/plugins/redmine_hudson/app/models/hudson.rb:33:in `fetch'
vendor/plugins/redmine_hudson/app/controllers/hudson_controller.rb:28:in `index'
/usr/lib/ruby/1.8/mongrel/rails.rb:76:in `process'
/usr/lib/ruby/1.8/mongrel/rails.rb:74:in `synchronize'
/usr/lib/ruby/1.8/mongrel/rails.rb:74:in `process'
/usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:158:in `each'
/usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:285:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:285:in `new'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:268:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:268:in `new'
/usr/lib/ruby/1.8/mongrel.rb:268:in `run'
/usr/lib/ruby/1.8/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `each'
/usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/1.8/mongrel/command.rb:212:in `run'

Rendering /mnt/data/tools/redmine-0.9.4/public/500.html (500 Internal Server Error)

I have used Redmine 0.9.4 (fresh installation), Hudson 1.356 and Redmine/Hudson 1.0.0.

Let me know how I can help on this...

Kind Regards

G.D.

RE: Hudson Plugin 0.1.0 - Added by Toshiyuki Ando almost 14 years ago

Hi, Robert.

Robert Gröber wrote:

I got the url out of your source: http://IP/hudson_settings/edit/PROJECT-ID
Thanks anyway ;)
The information you requested will be sent by mail.

Exception tells us, problem occurred by hudson's invalid request.
But, i have no idea to detect problem... sorry.

If you can, use latest version of hudson (may be 1.356)

RE: Hudson Plugin 0.1.0 - Added by Rob van Oostrum almost 14 years ago

I'm seeing a similar "wrong number of arguments" error when clearing the DB history (builds aren't showing up on the Redmine side, was troubleshooting this):

running 1.0.3.1 of plugin, Redmine 0.9.4.stable, Hudson 1.357

Processing HudsonSettingsController#delete_history (for 208.80.97.102 at 2010-05-08 15:07:24) [POST]
Parameters: {"commit"=>"Delete History", "action"=>"delete_history", "authenticity_token"=>"{auth token}", "id"=>"{job ID}", "controller"=>"hudson_settings"}
Settings cache cleared.

ArgumentError (wrong number of arguments (1 for 0)):
vendor/plugins/redmine_hudson/app/controllers/hudson_settings_controller.rb:96:in `find_hudson_jobs'
vendor/plugins/redmine_hudson/app/controllers/hudson_settings_controller.rb:96:in `delete_history'
/usr/lib/ruby/1.8/mongrel/rails.rb:76:in `process'
/usr/lib/ruby/1.8/mongrel/rails.rb:74:in `synchronize'
/usr/lib/ruby/1.8/mongrel/rails.rb:74:in `process'
/usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:158:in `each'
/usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:285:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:285:in `new'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:268:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:268:in `new'
/usr/lib/ruby/1.8/mongrel.rb:268:in `run'
/usr/lib/ruby/1.8/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `each'
/usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/1.8/mongrel/command.rb:212:in `run'

Rendering /var/lib/redmine/redmine-0.9.4/public/500.html (500 Internal Server Error)

Hudson Plugin 1.0.4 released - Added by Toshiyuki Ando almost 14 years ago

Hi, Rob.
Thanks for your report.
I fixed this problem 1.0.4.

Plugin Details

  • r-labs

How to get

  • repository:"http://r-labs.googlecode.com/svn/trunk/plugins/redmine_hudson/"
  • download:"http://r-labs.googlecode.com/files/redmine_hudson-1.0.4.zip"

Changes

RE: Hudson Plugin 0.1.0 - Added by Rob van Oostrum almost 14 years ago

Awesome. So this fixes #367 for me. Builds are still not showing up in Redmine however. I can configure everything OK, and even force a build to run from Redmine, but no build data ever shows up in Redmine. Any ideas? No errors in the Redmine log. Is there anything I can do to generate more data for you to analyze?

RE: Hudson Plugin 0.1.0 - Added by Toshiyuki Ando almost 14 years ago

Hi, Rob.
Some question.

ProjectSettings

  • Can you see job in JobList ?
  • Do you check on job ?

Global Settings

see http://your.redmine.server/settings/plugin/redmine_hudson.
  • Do you enable Autofetch mode ?

RE: Hudson Plugin 0.1.0 - Added by Rob van Oostrum almost 14 years ago

Yes I can see the Job. I did have Autofetch turned off as a matter of fact. When I turn it on I get this message:

HudsonApiError: Hudson::fetch - Unknown Error Connection reset by peer

This is what I see when I do the fetch manually:

$ sudo rake --trace RAILS_ENV=production redmine_hudson:fetch
(in /var/lib/redmine/redmine-0.9.4)
  • Invoke redmine_hudson:fetch (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine_hudson:fetch
    rake aborted!
    undefined method `l' for #<HudsonApiException: HudsonApiException>
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/models/hudson_exceptions.rb:41:in `initialize'
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/helpers/hudson_helper.rb:22:in `new'
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/helpers/hudson_helper.rb:22:in `open_hudson_api'
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/models/hudson.rb:77:in `fetch_jobs'
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/models/hudson.rb:32:in `fetch'
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/models/hudson.rb:143:in `fetch'
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/models/hudson.rb:142:in `each'
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/models/hudson.rb:142:in `fetch'
    /var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/lib/tasks/fetch.rake:6
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    /usr/bin/rake:19:in `load'
    /usr/bin/rake:19

RE: Hudson Plugin 0.1.0 - Added by Jhu-Ze Ke almost 14 years ago

Hi.. May I ask a question about the hudson plugin settings or issue?

I've installed redmin+hudson+hudson_redmine_plugin, and I also could

read the jobs list and their status when I am an administrater.

However, when I am not an administrater of the redmine, I can't

find the hudson report on my menu.

Should I check some settings?

Is it not supposed to show when someone is not an adminstrator?

Thanks a lot!!!

Ps. I'm sure the hudson module enabled in the settings.

screehshot_hudson_plugin.PNG (6.9 KB) screehshot_hudson_plugin.PNG The screen shot of my menu

RE: Hudson Plugin 0.1.0 - Added by Jhu-Ze Ke almost 14 years ago

Jhu-Ze Ke wrote:

Hi.. May I ask a question about the hudson plugin settings or issue?

I've installed redmin+hudson+hudson_redmine_plugin, and I also could

read the jobs list and their status when I am an administrater.

However, when I am not an administrater of the redmine, I can't

find the hudson report on my menu.

Should I check some settings?

Is it not supposed to show when someone is not an adminstrator?

Thanks a lot!!!

Ps. I'm sure the hudson module enabled in the settings.

Wow... I'm sorry to say that I made mistake when I'm setting the permission of users.

This could be found in "administrater/Roles and permissions/Hudson sets"

After I set the permission, I can see the "Hudson" tab.

RE: Hudson Plugin, latest download version - Added by Andy Bolstridge almost 14 years ago

Hi.

I love the plugin, but could you update the main page here. I spent quite a lot of time trying to install the plugin only to find that the one I had downloaded (v0.1.6) was very old... Could you put a link to the current version on the main description above.

thanks.

RE: Hudson Plugin 0.1.0 - Added by Toshiyuki Ando almost 14 years ago

Hi, Rob.

Rob van Oostrum wrote:

Yes I can see the Job. I did have Autofetch turned off as a matter of fact. When I turn it on I get this message:

HudsonApiError: Hudson::fetch - Unknown Error Connection reset by peer

I think, connection disconnected by hudson.
But, i can't discover the cause. Sorry.

undefined method `l' for #<HudsonApiException: HudsonApiException>
/var/lib/redmine/redmine-0.9.4/vendor/plugins/redmine_hudson/app/models/hudson_exceptions.rb:41:in `initialize'

...

This is another problem. i'll fix it next version.

RE: Hudson Plugin, latest download version - Added by Toshiyuki Ando almost 14 years ago

Hi, Andy.

Andy Bolstridge wrote:

I love the plugin, but could you update the main page here. I spent quite a lot of time trying to install the plugin only to find that the one I had downloaded (v0.1.6) was very old... Could you put a link to the current version on the main description above.

I can't edit main page.
I make new message, when new version will be released.

RE: Hudson Plugin 0.1.0 - Added by Billy T almost 14 years ago

I like this plugin.
Please add this Chinese translation to the plugin, which is apdated from en.yml.

Thank you.

zh.yml (2.67 KB) zh.yml

RE: Hudson Plugin 0.1.0 - Added by Billy T almost 14 years ago

Sorry, I missed the first line in zh.yml.

zh.yml (2.67 KB) zh.yml

RE: Hudson Plugin 0.1.0 - Added by Toshiyuki Ando almost 14 years ago

Billy T wrote:

I like this plugin.
Please add this Chinese translation to the plugin, which is apdated from en.yml.

Hi, Billy
Thanks for your translation.

New Message ( from 1.0.5 ) - Added by Toshiyuki Ando almost 14 years ago

I created new message. Please visit new one.

Hudson Plugin 1.0.5

(101-125/132)