Build submodule with building the parent module

8 views
Skip to first unread message

jpereira

unread,
Sep 12, 2017, 7:02:32 PM9/12/17
to jenkins...@googlegroups.com
Hi all,

I'm having toubles setting up the following (which should be very easy but I
cannot find a way to do it, sorry):

I have a big project with several git submodules.

When a change is made to a submodule I want this submodule to build without
building the all project.

Is this possible to acomplish ?

Thanks in advance,



--
Sent from: http://jenkins-ci.361315.n4.nabble.com/Jenkins-users-f361316.html

Mark Waite

unread,
Sep 12, 2017, 8:49:06 PM9/12/17
to jenkins...@googlegroups.com
If you want to clone the entire project, but only build the modified subprojects, I'm not aware of any direct support for that technique.

Are you intending to use it as some form of "incremental build"?  If so, then you may want to make that incremental build part of your build script (Makefile, maven pom, etc.) and rely on those scripts to determine which things have changed since the last build in that workspace.

Another alternative would be to create a job which only operates on the submodule, without cloning the parent module or any of the other submodules.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1505250650205-0.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages