Skip to Content »

Tech Life of Recht » Eclipse plugin for Hudson

 Eclipse plugin for Hudson

  • May 3rd, 2007
  • 1:12 am

We’ve recently started using Hudson as a replacement for CruiseControl. It has been a very pleasant switch, but I was missing a plugin for Eclipse to get a tighter integration. Luckily, Hudson has a easy to use API, and Eclipse plugins are not hard to make, so I created a small plugin. It looks something like this:

Hudson Eclipse plugin
The plugin can be downloaded here.
Authentication is not supported at the moment, but if anybody needs it, it should be pretty simple to add.

Update: The plugin is now hosted at http://code.google.com/p/hudson-eclipse/.

35 People had this to say...

Gravatar
  • Brill
  • May 7th, 2007
  • 7:34 am

Nice…
Works cleanly and is simple.
Two features I’d like to see:
- Allow multiple Hudson servers
- Get console output for a build

Gravatar
  • Andrew Craft
  • May 22nd, 2007
  • 4:51 pm

Great plugin, exactly what I wanted.

Any chance of distributing the source or setting it up as an open source project somewhere? This would keep the project alive and let others extend it. For example I noticed a small bug when you double click an item in the list of projects.

Gravatar
  • erwin
  • May 25th, 2007
  • 9:19 am

Could it be that a project that has never been build produces an error when fetching the xml data.

Unable to communicate with Hudson

With in the details a project that hasn’t been build.

Gravatar
  • Daniel
  • June 5th, 2007
  • 2:53 pm

This pugin seems to be so cool, but unfortunately we have defined authentication in the tomcat-users.xml :(

Why isn’t it possible to do this kind of notation:
http://user:passwort@whateverdomain.com/hudson

I still get 503. :(

Gravatar
  • Paja
  • June 7th, 2007
  • 4:35 pm

Seems like a nice plugin, but…

I have installed plugin into Eclipse 3.2.1, configured url to “http://localhost:8080/hudson” (check is ok), opened Hudson view, but there are no projects/builds listed.

Hudson version is 1.106.

‘URL’/api/xml is accesible. Security is disabled.

Any suggestions, please?

Gravatar
  • Daniel
  • June 11th, 2007
  • 2:30 pm

The 503 still doesn’t makes sense to me, according to this , all data is still readable .. and it is. Even if I’m not logged in I can access the /api/xml .. so why is security a problem?

Regards Daniel
ps.: please contribute the project source, etc. to a open source plattform. Thanks.

Gravatar
  • D0UHaveMyStapler
  • June 22nd, 2007
  • 4:38 pm

Problem?
I dropped the jar in the eclipse plugin directory.
I configured it with the correct url, and the test returned back valid.
When I open the Hudson View in eclipse it does not show any Jobs/Projects. However, it does show a the green checkmark on the bottom to indicate “All Builds ok” and if the builds break it shows the red x.
Any ideas?

Gravatar

Hi Joakim,

great plugin! Unfortunately there is a small bug that prevents me from using it. All my hudson builds have a space in their name. Example: “foo build”. The plugin seems to escape the space incorrectly:

http://venus:8080/hudson/job/foo+build/api/xml

instead of

http://venus:8080/hudson/job/foo%20build/api/xml

Would love to get an updated version :) .

Kind regards,
Elias.

Gravatar
  • Joerg
  • July 21st, 2007
  • 11:09 pm

Hi,

have the same problem as DOUHaveMyStapler. Hudson View does not show any Jobs.

Is there a new version of this plugin?

Thanks,
Joerg

Gravatar
  • dilas
  • July 24th, 2007
  • 4:24 am

The source code is already included in jar file.

Would be great if you put this plugin at Eclipse Plugin Central – EPIC (http://www.eclipseplugincentral.com/)

Im having the same issues with job name containing spaces… (maybe some tweak into HudsonClient.java can do the work)

Anyway, thanks for the great plugin :)

dilas.com.br

Gravatar

[...] Como estou envolvido no processo para definir uma ferramenta que ajude neste sentido, resolvi fazer o test drive em diversas ferramentas. Até o presente momento a mais simples e adequada para as nossas necessidades foi o projeto chamado Hudson. Ele conta até com um plugin para o Eclipse, que possibilita monitorar a execução automatizada sem sair da IDE. [...]

Gravatar
  • Tim
  • August 14th, 2007
  • 2:10 pm

Great plugin!

I found that the JobLabelProvider is leaking Image objects. This eventually causes eclipse to crash with an SWT no more handles error.

I think the plugin needs to use an ImageRegistry to store the icon instances, e.g. see http://www.javalobby.org/forums/thread.jspa?threadID=16557.

Gravatar
  • Graglia
  • October 13th, 2007
  • 9:49 am

I have pb with Hudson+SSL (own signed certifacte). I have to modify the plugin source to allow that kind of certifacte.. but I think Eclipse can handle that kind of certifcate. I also use subclipse with https urls and that plugin handle well those urls : I get a certificate dialog box with accept temporaly or definitively buttons..

Gravatar
  • recht
  • October 13th, 2007
  • 5:20 pm

Support for SSL is added to the feature requests list, and I’ll try to implement it for the next version.

Gravatar
  • Yan Burdett
  • June 6th, 2008
  • 5:59 pm

Wow, nice plugin! Any chance we could get a plugin that’s Eclipse 3.2 compatible. We use RAD 7.0 which runs on top of Eclipse 3.2. It would be nice to our Hudson builds in RAD.

Gravatar
  • Paul Thornton
  • June 18th, 2008
  • 1:58 pm

Yeah, would be great if you can make it compatible with Eclipse 3.2, we are also tied to this version at present.

Gravatar
  • Stewart
  • March 12th, 2009
  • 5:05 pm

Great plugin, but it seems to hang the whole Eclipse workbench if it cannot get through to Hudson.
In my Eclipse logs are repeated:
12-Mar-2009 15:02:37 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
12-Mar-2009 15:02:37 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
12-Mar-2009 15:03:49 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
12-Mar-2009 15:03:49 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
12-Mar-2009 15:04:10 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
12-Mar-2009 15:04:10 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
12-Mar-2009 15:04:31 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
12-Mar-2009 15:04:31 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.(Socket.java:366)
at java.net.Socket.(Socket.java:240)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at dk.contix.eclipse.hudson.HudsonClient.checkValidUrl(HudsonClient.java:180)
at dk.contix.eclipse.hudson.preference.HudsonPreferencesPage$HudsonUrlField.check(HudsonPreferencesPage.java:128)
at dk.contix.eclipse.hudson.preference.HudsonPreferencesPage$HudsonUrlField.checkState(HudsonPreferencesPage.java:117)

Gravatar
  • recht
  • April 7th, 2009
  • 9:50 pm

Thanks for the error report. The next version has a lower connection timeout, so the workbench shouldn’t hang anymore.

[...] can be extended by plugins and can be integrated into IDEs like Eclipse. There are also a lot of tools like for example Firefox Add on. It is written in Java (1.6) [...]

Gravatar
  • LindaYp
  • February 20th, 2010
  • 11:45 pm

If some students want to hear more about this good post they have to buy essay choosing the custom writing service.

Gravatar
  • luk
  • March 16th, 2010
  • 6:27 pm

Why it doesn’t work on Galileo ?
Error : “Invalid byte 2 of 3-byte UTF-8 sequence

Gravatar
  • Stefan Heckler
  • April 22nd, 2010
  • 9:35 am

I would love to use this plugin (V 1.0.10), but I face the same problem as luk using it with Eclipse Galileo: URL is checked valid, but
I see no builds, but all views (tabs) and the popup says “Cannot coummunicate with Hudson: Invalid byte 2 of 3-byte UTF-8 sequence”

Will there be a bugfix??

Gravatar

There are also a lot of tools like for example Firefox Add on!

Gravatar

for example Firefox Add on!

Gravatar

if you work and have no time to study, buy essay and be happy.

Gravatar

The write my paper service should use your superb release for a further evolution, because some students always look for the university essay of high quality.

Gravatar

I found this a bit too late. :( I really needed it few days ago. But now it will be in my list.

Gravatar

But now it will be in my list.

Gravatar

Thanks for the information, it was very helpful and great comments everyone!.Thank you for the wonderful posts

Gravatar

Great articles, quite informative post, thank you for sharing. Just bookmarked this site… thanks

Gravatar

This would keep the project alive and let others extend it. For example I noticed a small bug when you double click an item in the list of projects.

Gravatar

Navy SEAL workout routine follows the primary fitness exam applied to SEAL candidates ahead of entering into Phase One of training. These is one of the more rigorous military workouts. But you should be an expert at this SEAL workout routine before considering BUDS

Gravatar

Your post is really informative for me. I liked it very much.
Keep sharing such important posts.

Gravatar

Any chance of distributing the source or setting it up as an open source project somewhere? This would keep the project alive and let others extend it. For example I noticed a small bug when you double click an item in the list of projects.
Internet Hosting

Gravatar

We’ve recently started using Hudson as a replacement for CruiseControl. It has been a very pleasant switch, but I was missing a plugin for Eclipse to get a tighter integration. Luckily, Hudson has a easy to use API, and Eclipse plugins are not hard to make, so I created a small plugin. Thanks for sharing

Want your say?

* Required fields. Your e-mail address will not be published on this site

You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>