Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [git] configuring Hudson build job for multiple Git repositories

As I understand it, there'd be a separate build job for each repo. The Jobs should rely upon each other in the needed build order using "spawn another build" or "start after X project".  Then the base build kicks off, spawning higher level projects (from a dependency point of view) as it goes.

That's the theory anyway. I'm not sure what other teams do, and I haven't gotten to the point of splitting the builds yet (we needed to maintain all history, so I pretty much fully migrated from svn to Git (1->1), and will be pruning and adding additional repos shortly. 

I did do some experimenting though and linking builds seems to work ok. Though I haven't yet figured out how to share workspaces (so test can directly access the built artifact for instance).

HTH

Eric

On 30/07/2012 10:49 AM, Matthew Heitz wrote:
Hi,

I need some help configuring Hudson to build my project after its migration from CVS to Git.

We migrated from one CVS repository to several Git repositories, thanks to statements like "Typically, one Git repository (.git) is created for each logical unit, or grouping of code -- a plugin, a connector, a component, and so on." in http://wiki.eclipse.org/Git/Migrating_to_Git .  I want the code from all of the Git repos to be compiled together by one Hudson job, but I haven't succeeded yet.

Hudson's build config page allows you to specify as many Git repos as you'd like, but I just read in the Hudson Book http://wiki.eclipse.org/The_Hudson_Book that "Providing multiple repositories only makes sense when they are clones or instances off the same repository, since they will be used for merging together the content prior to the build."  That's not what I'm trying to do.  Each repository contains a distinct set of plugins.

In order for my build to work, the files from all repos must be extracted to the same directory in the Hudson workspace.  But Hudson is removing the previous contents of the directory each time it fetches files from a repo.  I end up with only the files from the last repo.

I tried telling Hudson to put each repo's files into a different place, but then javac couldn't find them.

I appreciate any help you can give me.

 -Matt

--------------
Matt Heitz
Developer, Eclipse EGL Development Tools and IBM Rational Business Developer
http://www.eclipse.org/edt/
http://www.ibm.com/developerworks/rational/products/rbde/


_______________________________________________ git mailing list git@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/git

Back to the top