I have a submodule A that is not a standalone application. It requires the main application for it to work. I would like to create a CI build for A so that whenever a commit is pushed to A it triggers a build with the main project code.
How do I do that in Jenkins?
What I need to do:
- A commit to A triggers a build.
- The build clones the Main project code and pulls the latest code for A at the latest commit for A (not the commit that the Main Project knows about).
How would I do that using Jenkins and GIT?
Note I have multiple submodules for the project. Submodule A triggers a build that pulls the latest changes from A and also the latest of main code and pulls updates from the other submodules.