views:

4445

answers:

3

I'm trying to set up Hudson as a CI Server and I'm having trouble getting everything to work. I'm trying to use the 'official' git plugin. I haven't done any testing with the alternate plugin developed by stephenh.

I'm wondering if anyone else has gotten Hudson to work with Git or any CI server to work with Git. If so, how and with what configuration.

Pertinent information is that I'm on Hudson 1.277, I'm using Git 1.6.1.1.230.gdfb04, and the Git Plugin 0.5, all on the windows platform.

Thanks in advance!

+2  A: 

http://stackoverflow.com/questions/499316/git-plugin-for-hudson-checkout-problem

found that on my travels, thought it might help you out

Richard
+2  A: 

My experience with the Hudson git plugin 0.5 on Linux has been very positive. It works great.

My experience with the Hudson git plugin 0.5 on Windows has been consistently negative. I encountered Hudson bug 2762, "/ is added to path of clone destination, Windows won't clone to that destination"

When I switched to the Hudson git plugin pre-release 0.6 from stephenh (on Windows), I was able to use git on Windows with Hudson.

Stephen Haberman's improvements are mentioned at kernel trap. I confirmed that his target/git.hpi works in my Hudson version 1.290 installation. I believe it is located at http://github.com/stephenh/hudson-git2/

There is a surprising message when Hudson 1.290 starts with Stephen's plugin. Hudson reports:

Mar 10, 2009 7:57:36 AM hudson.util.RobustReflectionConverter doUnmarshal
WARNING: Cannot convert type hudson.util.DescribableList to type hudson.model.Hudson$CloudList
Mar 10, 2009 7:57:36 AM hudson.util.RobustReflectionConverter doUnmarshal
WARNING: Skipping a non-existent field repositories
com.thoughtworks.xstream.converters.reflection.NonExistentFieldException: No such field hudson.plugins.git.GitSCM.repositories

However, even with those messages, I was still able to clone my repository. I haven't done detailed testing yet, but preliminary results look promising.

A: 

I wrote a tutorial on getting hudson to work with git and grails. It probably covers everything you need:

http://www.electricsenator.net/2009/10/03/1254618530821.html

That URL is now a 404.
Brandon
That link's broken.
opyate
and not in the Wayback Machine :(
Thorbjørn Ravn Andersen