Trigger Jenkins test after commit in git submodules

I have a super project that integrates only a few git sums. I would like to call Jenkins for every change in submodules, as well as when updating a super project.

/superproject /submodule-a /submodule-b /submodule-c 

For each submodule I use the DSL plugin and it works fine, except when some modules require others to compile or run tests - this is one reason for combining all other repositories into one superproject.

What should I do to test individual submodules, as well as integration as part of a super project?

+1
source share
1 answer

I think this makes no sense. If the git plugin is configured to run the job after post-receive interception in the remote repository, then it should work.

If the new commit is transferred to the submodule, the parent project does not represent. You must do:

 git submodule update --remote --recursive git commit git push 

Then and only then the task should receive a notification. For more information you can read:

+1
source

All Articles