Skip to content

Implement a way to disable git submodule support completely #48

Merged
2 commits merged into from Nov 10, 2011

1 participant

@zyv
zyv commented Nov 10, 2011

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 yury@shurup.com

@zyv zyv Implement a way to disable git submodule support completely
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
7f5c706
@zyv zyv referenced this pull request Nov 10, 2011
Closed

option for submodule updating #43

@zyv
zyv commented Nov 10, 2011

Also, there is a JIRA issue about this:

https://issues.jenkins-ci.org/browse/JENKINS-6658

@ghost Unknown commented on an outdated diff Nov 10, 2011
src/main/webapp/help-disableSubmodules.html
@@ -0,0 +1,5 @@
+<div>
+ This option is very useful when you want to do very advanced or plain weird stuff with your submodules from the
@ghost
ghost added a note Nov 10, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@zyv zyv [FIXED JENKINS-6658] Reworded the help message as per @jieryn suggestion
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
645ec13
@ghost ghost merged commit 3a1ce74 into jenkinsci:master Nov 10, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.