Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a way to disable git submodule support completely #48

Merged
2 commits merged into from Nov 10, 2011
Merged

Implement a way to disable git submodule support completely #48

2 commits merged into from Nov 10, 2011

Conversation

zyv
Copy link
Contributor

@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

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
@zyv zyv mentioned this pull request Nov 10, 2011
@zyv
Copy link
Contributor Author

zyv commented Nov 10, 2011

Also, there is a JIRA issue about this:

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

@@ -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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
ghost pushed a commit that referenced this pull request Nov 10, 2011
Implement a way to disable git submodule support completely
@ghost ghost merged commit 3a1ce74 into jenkinsci:master Nov 10, 2011
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant