Project

General

Profile

Hudson Plugin 0.1.0

Added by Toshiyuki Ando over 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)

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

I forgot big thing.

1.0.2 is under development.
be carefully.

RE: Hudson Plugin 0.1.0 - Added by Brian Jensen over 14 years ago

Hi,

I tried the new plugin from the link you sent me. Changesets are now parsed by the plugin correctly, but the associated revisions section doesn't contain any information about the build status like shown in your screen shot. Any idea why this doesn't work? I have attached to show two screen shots as an example.

thanks,
Brian

activity.png (25.5 KB) activity.png hudson plugin activity changeset
issue.png (42.4 KB) issue.png issue associate revisions

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

Brian Jensen wrote:

I tried the new plugin from the link you sent me. Changesets are now parsed by the plugin correctly, but the associated revisions section doesn't contain any information about the build status like shown in your screen shot. Any idea why this doesn't work? I have attached to show two screen shots as an example.

This bug may occurs on Redmine 0.9.0 or higher.
I fixed it. Could you try ?

version 1.0.2 build-131 underdevelopment

RE: Hudson Plugin 0.1.0 - Added by Brian Jensen over 14 years ago

Hey it works :)! You seem to have solved the problem.

On a side note, the function "delete database" is missing in the new versions. Is there an easy ways to delete the previously fetched hudson information?

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

Dear all,

First of all, this plugin is great job. Thanks a lot for developing this!

I've met a strange problem on my Hudson / Redmine setup. I got this kind of errors on the page but nothing inside the log (production.log) :

HudsonApiError: HudsonJob::fetch_builds 'MyJob' - Response Invalid %1s

I cannot trig build either :

build failure - MyJob
HudsonApiError: HudsonJob::request_build 'MyJob' - Http Error %1s

I'm using :
- Hudson 1.343
- Redmine 0.9.1
- redmine_hudson 1.0.1.1

Do you have any idea for solving this? I'm not a RoR expert but I can provide some specific files if you want.

Kind Regards,

G.D.

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

Hi G.D.

1.0.1.1 doesn't work on Redmine0.9.1. (I don't test it)
1.0.2 works on Redmine0.9.1, But under development.

If you can, try this 1.0.2-underdevelopment

1.0.2 will be released this weekend. I'm sorry about delay release.

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

Thank you for your quick reply ;-)

Just for your information, I've tried the 1.0.2 (Build 141) and the same kind of error but with a different message such as:

HudsonApiError: HudsonJob::fetch_builds 'MyJob' - Response Invalid #

I would pleased to test your next version on my setup.

Kind Regards,

G.D.

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

G. D. wrote:

Just for your information, I've tried the 1.0.2 (Build 141) and the same kind of error but with a different message such as:

HudsonApiError: HudsonJob::fetch_builds 'MyJob' - Response Invalid #

Could you access following URL using browser, and let me know the results ?
URL: http://{your.hudson.server}/job/{job.name}/api/xml?depth=1

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

Hudson's response is no problem.

two reasons can be given for this error.

1. raise HTTPBadResponse Error ( maybe not. because you can get hudson's response)
2. response(xml) has problem

HudsonApiError: HudsonJob::fetch_builds 'MyJob' - Response Invalid #

Is '#' a copy of error message ? or short?

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

I've tried your plugin in version 1.0.2 once again (build 143) and I got this for one of my project :

Processing HudsonController#index (for 10.194.99.96 at 2010-02-11 12:15:42) [GET]
  Parameters: {"action"=>"index", "id"=>"misc-qa", "controller"=>"hudson"}

NoMethodError (undefined method `hudson_job_id=' for nil:NilClass):
  vendor/plugins/redmine_hudson/app/models/hudson_job.rb:33:in `after_save'
  vendor/plugins/redmine_hudson/app/models/hudson.rb:87:in `fetch_jobs'
  /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.rb:78:in `fetch_jobs'
  vendor/plugins/redmine_hudson/app/models/hudson.rb:26: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.1/public/500.html (500 Internal Server Error)

On another one, I got :

HudsonApiError: HudsonJob::fetch_builds 'MyJob' - Response Invalid #

I can clean the database if needed. I don't know if it has something to do with this...

Regards

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

I've cleaned the database and started tests again. I got this from my default test project :

build failure - Test-HudsonRedmine
HudsonApiError: HudsonJob::request_build 'Test-HudsonRedmine' - Http Error 405

HTTP Error 405 Method not allowed ?

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

G. D. wrote:

I've cleaned the database and started tests again. I got this from my default test project :

[...]

HTTP Error 405 Method not allowed ?

I'm sorry, i don't have no idea for Error 405.
Do redmine and hudson exist on same server?

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

Yes, both tools are installed on the same machine. Redmine is on the port 3000 and Hudson on the 8080. I'm not using any Apache reverse proxy in front of them.

I was suspecting something wrong with the HTTP configuration (http_proxy directive) but it does not seem to be related with this...

I will try to fix the 405 error on my own. About the "Response Invalid" errors, do you have a lead to solve them?

Kind Regards,

Hudson Plugin 1.0.2 released - Added by Toshiyuki Ando over 14 years ago

Plugin details

How to get

Changelog

  • 198 (Feature) You can download artifacts.
  • 266 (Feature) Clean up stored data.
  • 267 (Feature) Search issues related particular build.
  • 235 (Defect) Hudson icon does not display in activitiy view with IE
  • 273 (Defect) Internal error occures when hudson has no response.
  • 276 (Defect) Translation missing occures on redmine0.9.x or trunk
  • 284 (Defect) When saving the settings for a project, get the exception.
  • 286 (Defect) Can't get changeset information.
  • 288 (Defect) Can't show build results on issue redmine0.9.x or trunk
  • 291 (Defect) db:migrate_plugins failed on PostgreSQL

hi, Lalit.
Sorry I took so long.
We can search issues related particular build.
But alias for 'Last Successful Build', 'Last Failed Build' and 'Last Build' not implemented. sorry.

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

Hi, G.D.

G. D. wrote:

I will try to fix the 405 error on my own. About the "Response Invalid" errors, do you have a lead to solve them?

Sorry, I couldn't recreate "Response Invalid" error.
This error caused by ...

  • Hudson returns bad http response. (ex. invalid http header..)
  • Hudson returns invalid xml response.

but your hudson' response has no problem... :<

RE: Hudson Plugin 0.1.0 - Added by Marco Bazzani over 14 years ago

attached Italian translation

it.yml (2.91 KB) it.yml

RE: Hudson Plugin 0.1.0 - Added by Marco Bazzani over 14 years ago

italian translation I dunno with of this 2 is the correct one
the name is the 2 path where I did put them

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

Marco Bazzani wrote:

italian translation I dunno with of this 2 is the correct one
the name is the 2 path where I did put them

Thanks! Marco.
I include next version (1.0.3)

RE: Hudson Plugin 0.1.0 - Added by Marco Bazzani over 14 years ago

Toshiyuki Ando wrote:

Marco Bazzani wrote:

italian translation I dunno with of this 2 is the correct one
the name is the 2 path where I did put them

Thanks! Marco.
I include next version (1.0.3)

oh, those are better translated and I fixed some errors

RE: Hudson Plugin 0.1.0 - Added by Marco Bazzani over 14 years ago

or if you prefere this is the patch for svn rev479

RE: Hudson Plugin 0.1.0 - Added by Marco Bazzani over 14 years ago

mmm do you use some sort of translation platform such as rosetta ?
I see you added some more strings and I want to keep it up to date

RE: Hudson Plugin 0.1.0 - Added by Marco Bazzani over 14 years ago

this patch is for italian translation against r479 and add the translation for label_use_url_for_plugin

RE: Hudson Plugin 0.1.0 - Added by Marco Bazzani over 14 years ago

trash the latest patch this is the correct one :)

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

Marco Bazzani wrote:

mmm do you use some sort of translation platform such as rosetta ?
I see you added some more strings and I want to keep it up to date

Sorry, I missed "it_lang.patch" ;<

this patch is for italian translation against r479 and add the translation for label_use_url_for_plugin

trash the latest patch this is the correct one :)

Thanks a lot!

Translation file for Redmine0.8.x has little bit problem.
I fixed it. ( can't use "{{value}}", use "%1s" )

Hudson Plugin 1.0.3 released - Added by Toshiyuki Ando over 14 years ago

Plugin Details

How to get

Changes

  • 306 (Feature) User can specify url separately, for plugin access and user access
  • 314 (Feature) Italian translation

If you want to specify url separately like below. ( due to network environment, etc.. )

User -> Hudson http://dev.server/hudson/
Plugin -> Hudson http://localhost:8080/
  1. Input to URL text field "http://dev.server/hudson/"
  2. Check on 'Plugin uses below url....', and text field appear
  3. Input to URL for plugin text field "http://localhost:8080/"
  4. Save settings

(76-100/132)