Hi,

I'm searching for a while now for a solution to use continues integration 
in a good way. I'm using a (base) repository which contains the base 
structure for my application, and furthermore a lot of git submodules 
pointing to repositories containing the packages used in my project.

What I would like to achieve is having one job which is triggered by a new 
patch pushed to gerrit if this patch is in the base repository, or one of 
the package repositories. This can of course be done using the 
gerrit-trigger plugin, just by setting multiple gerrit projects in the 
'Gerrit trigger' section of the job configuration. But now I can't use the 
GERRIT_REFSPEC in my SCM configuration as this would checkout the base 
repository in my workspace, and checkout the patch of my submodule directly 
in the root of the workspace, which is of course not what I want.

So, how should I approach this? Would it be possible to configure the job 
in such a way that the git plugin recognizes that the patchset on which the 
job triggers is actually a change in a submodule, and if so checkout the 
patch in the path of the submodule?

And, if this is possible, is there a way to make use of topic branches in 
gerrit like "if there's a topic branch on the submodules patch also 
checkout all other patches with the same topic branch if there's also a 
submodule for this repository".

I would really like to know if this is possible, or if I have a completely 
wrong approach to do this.

Greetz,
Rens

Reply via email to