Project

General

Profile

Hudson Plugin 1.0.5

Added by Toshiyuki Ando over 14 years ago

hello.

Redmine Hudson Plugin 1.0.5
( old message 0.1.0 to 1.0.4 )

What's Hudson ?

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

More detail {Meet Hudson}[http://wiki.hudson-ci.org/display/HUDSON/Meet+Hudson]

Requirements

  • Require Redmine 0.8.x./trunk
  • Recommend Hudson 1.313.

How To Get

Feature

Show Job List, Job Details, Build History

Show build result on issue

Show build history on activity

Others

  • Search issues related particular build
  • Rake task 'redmine_hudson:fetch'
  • Clean up stored data

Settings

  • For each projects
  • For plugins (all projects)


More details see http://www.r-labs.org/wiki/r-labs/Hudson_En/

Demo

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


Replies (67)

RE: Hudson Plugin 1.0.5 - Added by Toshiyuki Ando over 12 years ago

Hi, Marslo.

Marslo Jiao wrote:

Hello Toshiyuki Ando,

Can I define some keywords by myself for health report?

Yes, you can add any keywords. push "Add HealthReport Setting" link.

I mean that, there are two default keywords: "Build stability" and "Test Result", how can add some Hudson chart in redmine?

Sorry I don't know how to add keywords to Hudson.
Maybe some plugin of hudson add to keywords.

There are nothing build result on Issue Tag, is there something needs to be set? (the following is my setting screenshot.)

Could you tell me what is Issue Tag ?

RE: Hudson Plugin 1.0.5 - Added by Jonas J over 12 years ago

Hi all !!

I testes the last plugin version 1.0.8.1
against redmine 1.4.4
with ruby 1.8.7 and rails gems 2.3.14
and jenkins 1.4

Of course, I did all the tricks described by Nadia Irish, which gave me total support to have this redine_hudson/jenkins integration running with GIT.

please, see a few posts befor if you want to use it with git.

best regards,

RE: Hudson Plugin 1.0.5 - Added by Ryan Mendoza over 12 years ago

Toshiyuki, I'm sure you've already been asked this, but do you plan on getting this plugin work with Redmine 2.X?

RE: Hudson Plugin 1.0.5 - Added by Toshiyuki Ando over 12 years ago

Ryan Mendoza wrote:

Toshiyuki, I'm sure you've already been asked this, but do you plan on getting this plugin work with Redmine 2.X?

I tried. but not test enough.
You can download plugin for redmine 2.0.0. ( maybe works with redmine 2.0.3 )

https://bitbucket.org/nobiinu_and/redmine_hudson/downloads/redmine_hudson-2.0.0.zip

RE: Hudson Plugin 1.0.5 - Added by Ryan Mendoza over 12 years ago

Awesome thanks! I'm trying it out now, and so far so good.

RE: Hudson Plugin 1.0.5 - Added by Dimitar G about 12 years ago

Hi,

I tried to use redmine_hudson-2.0.0.zip with Redmine 2.1.2 and encountered the error shown below.
It looks like app/views/hudson_settings/_joblist.html.erb uses link_to_remote, which does not work in Redmine 2.1.2.
Replacing link_to_remote with link_to seems to fix the problem.
I do not know Ruby at all, so I am not sure if this really fixes the issue and/or if there are side effects.

Started GET "/projects/X/hudson_settings/edit" for 169.15.10.83 at 2012-10-02 15:25:47 -0400
Processing by HudsonSettingsController#edit as HTML
Parameters: {"id"=>"X"}
Current user: dev1 (id=4)
Rendered plugins/redmine_hudson/app/views/hudson_settings/_joblist.html.erb (15.7ms)
Rendered plugins/redmine_hudson/app/views/hudson_settings/edit.html.erb within layouts/base (93.0ms)
Completed 500 Internal Server Error in 108ms

ActionView::Template::Error (undefined method `link_to_remote' for #<#<Class:0x000000067bbd48>:0x000000067d0680>):
1: <div class="floating" id="joblist">
2: <%=link_to_remote "[#{l(:label_update_jobs)}]", :update=>'joblist', :url=>{:action => 'joblist', :id=>Herve Harster}, :with=>"'url=' + $('settings_url').value + '&url_for_plugin=' + $('settings_url_for_plugin').value + '&enable_url_for_plugin=' + $('enable_url_for_plugin').checked"%><br/>
3: <p>
4: <% if @jobs.length == 0 >
5: <
=@error if Krzysio Krzysiu != nil%>
plugins/redmine_hudson/app/views/hudson_settings/_joblist.html.erb:2:in `_plugins_redmine_hudson_app_views_hudson_settings__joblist_html_erb__2527215610437044369_11660200'
actionpack (3.2.8) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.8) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.8) lib/action_view/template.rb:143:in `render'
actionpack (3.2.8) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
actionpack (3.2.8) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
actionpack (3.2.8) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.8) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.8) lib/action_view/renderer/partial_renderer.rb:237:in `render'
actionpack (3.2.8) lib/action_view/renderer/renderer.rb:41:in `render_partial'
actionpack (3.2.8) lib/action_view/renderer/renderer.rb:15:in `render'
actionpack (3.2.8) lib/action_view/helpers/rendering_helper.rb:24:in `render'
plugins/redmine_hudson/app/views/hudson_settings/edit.html.erb:49:in `block in plugins_redmine_hudson_app_views_hudson_settings_edit_html_erb__1237096533392220648_54441960'
actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:40:in `capture'
actionpack (3.2.8) lib/action_view/helpers/form_helper.rb:607:in `fields_for'
actionpack (3.2.8) lib/action_view/helpers/form_helper.rb:378:in `form_for'
plugins/redmine_hudson/app/views/hudson_settings/edit.html.erb:6:in `_plugins_redmine_hudson_app_views_hudson_settings_edit_html_erb___1237096533392220648_54441960'
actionpack (3.2.8) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.8) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.8) lib/action_view/template.rb:143:in `render'
actionpack (3.2.8) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
actionpack (3.2.8) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.8) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.8) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
actionpack (3.2.8) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
actionpack (3.2.8) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
actionpack (3.2.8) lib/action_view/renderer/template_renderer.rb:18:in `render'
actionpack (3.2.8) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.2.8) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.2.8) lib/abstract_controller/rendering.rb:110:in `_render_template'
actionpack (3.2.8) lib/action_controller/metal/streaming.rb:225:in `_render_template'
actionpack (3.2.8) lib/abstract_controller/rendering.rb:103:in `render_to_body'
actionpack (3.2.8) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
actionpack (3.2.8) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
actionpack (3.2.8) lib/abstract_controller/rendering.rb:88:in `render'
actionpack (3.2.8) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.2.8) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/usr/lib64/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (3.2.8) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
activerecord (3.2.8) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:39:in `render'
actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.8) lib/active_support/callbacks.rb:502:in `_run__761622278693353719__process_action__962119267040049251__callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.8) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.8) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
rack-openid (1.3.1) lib/rack/openid.rb:98:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.1) lib/rack/etag.rb:23:in `call'
rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
activerecord (3.2.8) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__501554003432126190__call__1470510548494052603__callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
railties (3.2.8) lib/rails/engine.rb:479:in `call'
railties (3.2.8) lib/rails/application.rb:223:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
/usr/lib64/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/usr/lib64/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/usr/lib64/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

RE: Hudson Plugin 1.0.5 - Added by Toshiyuki Ando about 12 years ago

Dimitar G wrote:

Hi,

I tried to use redmine_hudson-2.0.0.zip with Redmine 2.1.2 and encountered the error shown below.
It looks like app/views/hudson_settings/_joblist.html.erb uses link_to_remote, which does not work in Redmine 2.1.2.
Replacing link_to_remote with link_to seems to fix the problem.
I do not know Ruby at all, so I am not sure if this really fixes the issue and/or if there are side effects.

Thanks for your report.
Hudson plugin does not support Redmine 2.1.2. sorry :<

I'm going to upgrate plugin.

RE: Hudson Plugin 1.0.5 - Added by Terence Mill almost 12 years ago

[BUG Report] - hudson plugin: empty filter attributes results in "undefined" filter value

Environment:
Redmine version 2.1.4.stable
Ruby version 1.9.3 (java)
Rails version 3.2.8
Environment production
Database adapter MySQL

See my Bug report http://www.r-labs.org/issues/1143

RE: Hudson Plugin 1.0.5 - Added by Дмитрий Бабанов almost 12 years ago

Hello, I use:
Redmine version 2.1.4
Ruby version 1.9.3
Rails version 3.2.8
Database MySQL

Hudson migrate successfully, but when i want to show /project/new or /project/<another_project>, page is not found. So, log:

Started GET "/projects/radar" for 127.0.0.1 at 2012-12-19 13:35:44 +0300
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"radar"}
  Current user: admin (id=1)
  Rendered projects/_members_box.html.erb (1.0ms)
  Rendered projects/show.html.erb within layouts/base (15.0ms)
Completed 500 Internal Server Error in 97ms

ActionController::RoutingError (No route matches {:controller=>"hudson", :id=>#<
Project id: 1, name: "Radar", description: "Orwell-R project", homepage: "", is_
public: true, parent_id: nil, created_on: "2012-12-19 08:33:43", updated_on: "20
12-12-19 08:33:43", identifier: "radar", status: 1, lft: 1, rgt: 2>}):
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:158:in `call_hook'
  app/views/layouts/base.html.erb:14:in `_app_views_layouts_base_html_erb__71091
4736_52809312'
  app/controllers/projects_controller.rb:168:in `show'

So, please answer, when you plan to release a version compatible with redmine 2.1.x ?

RE: Hudson Plugin 1.0.5 - Added by Toshiyuki Ando almost 12 years ago

Hi, Roberto.

Thanks for your report.
Plugin is going to upgrate for Redmine2.1.x .
There are some bugs yet.

I'm trying to fix critcal bugs by 25 December.
Please be patient and wait for a little while.

Regards.

Hudson Plugin 2.1.0 Released - Added by Toshiyuki Ando almost 12 years ago

Plugin Details

How to get

Changes

  • support redmine 2.2.0/2.1.4 !!! (should work with 2.1.5)

Install

  1. download zip file.
  2. extract.
  3. rename directory "redmine_hudson" from "redmine_hudson-2.1.0"
  4. run 'rake redmine:plugins:migrate'

I'm sorry, i couldn't upload zip file which has correct directory ... ;<

Hudson Plugin 2.1.1 Released - Added by Toshiyuki Ando almost 12 years ago

Plugin Details

How to get

Changes

fixed bug.

Install

  1. download zip file and extract to plugin directory.
  2. run 'rake redmine:plugins:migrate'

Hudson plugin 2.1.1 problems - Added by Massimo Rossello over 11 years ago

Hi,
I am a happy user of the redmine-1.4 version of the plugin, and I am now attempting to upgrade redmine to 2.x.
I took the source head (commit e1238b0) and using redmine 2.3, but I have a couple of problems, the first of which I bet happens also with redmine 2.1/2.2 and plugin tagged 2.1.1 (it seems to me it breaks at 387a4ba).

Thanks for your help

First problem
NoMethodError (private method `open' called for HudsonApi:Class):
plugins/redmine_hudson/app/models/hudson_job.rb:162:in `fetch_summary'
plugins/redmine_hudson/app/models/hudson_job.rb:144:in `fetch_builds'
plugins/redmine_hudson/app/models/hudson.rb:102:in `block in fetch_buildresults'
plugins/redmine_hudson/app/models/hudson.rb:99:in `each'
...

This is due to removal of the open method in HudsonApi, but still referenced in hudson_job.rb

Second problem
At some point, changing something in settings (maybe - not sure - when trying to insert user credentials), an internal error arises when visiting any hudson page. A server restart does not help. The only restoring action I found is to remove redmine_hudson db migrating to version 0 and reinstalling.

...
Completed 500 Internal Server Error in 322ms

REXML::ParseException (#<REXML::ParseException: Missing end tag for 'hr' (got "body")
Line: 2
Position: 278
Last 80 unconsumed characters:
>
/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:335:in `pull_event'
/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:183:in `pull'
/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:22:in `parse'
...

Hudson plugin 2.1.1 problems - Added by Massimo Rossello over 11 years ago

Solved the first problem with this simple patch

I confirm that second problem arises when adding credentials. I try without any entry in "Plugin uses below url for access to Hudson", maybe it's wrong, but the system must not crash

redmine_hudson_2.3.patch (617 Bytes) redmine_hudson_2.3.patch patch over commit e1238b0

Hudson Plugin 2.1.2 Released - Added by Toshiyuki Ando about 11 years ago

Plugin Details

How to get

Changes

fixed some bug.

Install

  1. download zip file and extract to plugin directory.
  2. run 'rake redmine:plugins:migrate'

RE: Hudson Plugin 1.0.5 - Added by Toshiyuki Ando about 11 years ago

Hudson Plugin 2.1.2 supports Redmine 2.3.x and 2.2.x.

RE: Hudson Plugin 1.0.5 - Added by tom wang over 7 years ago

Does Hudson Plugin support Redmine 3.x?

(51-67/67)