This option is very useful when you want to do very advanced or plain weird stuff with your submodules from the build scripts and Jenkins keep getting into your way. By disabling support for submodules you can still keep using basic git polling functionality and just have Jenkins to ignore submodules completely as if they didn't exist.
The motivation for this is a follows:
By default, whenever Jenkins detects that the repository uses submodules it will go ahead and check them all out whether you want it or not. In many cases this is totally appropriate, however, unfortunately some projects use submodules for things like different versions of JDKs and precompiled libraries and you really don't want to pull 4 Gigs worth of this stuff in.
However, if one gives up on git plugin completely, one loses the possibility of using SCM polling and all the fancy SCM-related goodies etc., which is annoying. So I decided to add an option to disable the support for submodules (false by default), which would take care of all these corner cases...
Signed-off-by: Yury V. Zaytsev firstname.lastname@example.org
Implement a way to disable git submodule support completely
Signed-off-by: Yury V. Zaytsev <email@example.com>
Also, there is a JIRA issue about this:
I just like the valuable info you provide on your articles. I'll bookmark your blog and take a look at again right here regularly. I am reasonably sure I'll be informed plenty of new stuff right here! Best of luck for the next!
Zapatilla Asics Baratas
[FIXED JENKINS-6658] Reworded the help message as per @jieryn suggestion