how to trigger build in jenkins when changes committed to submodule?
We have a git repository with external submodules. We have to trigger a build when submodule was changed. Could you advice to us how to poll changes on submodules with your xtrigger plugin. Is it better to use shell script or monitor files or something else?
more information about our build brocess.
step #1. clone root repository with submodules
step #2. execute job for each submodule
step #2.1 (in submodule). switch to proper branch (for example, master)
step #2.1 (in submodule). pull the latest sources for submodule
now if somebody commits to root repository, jenkins launches build for the app
but if somebody commits to any submodule repository, jenkins doesn’t launch anything
we need solution for the second case. in best case it should be done via standard jenkins functionality or via open source plugin.