Build submodule with building the parent module

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Build submodule with building the parent module

jpereira
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

--
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 [hidden email].
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 | Threaded
Open this post in threaded view
|

Re: Build submodule with building the parent module

Mark Waite-2
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

On Tue, Sep 12, 2017 at 5:02 PM jpereira <[hidden email]> wrote:
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

--
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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEm5YMJVmKOfGyXNq_v6U0nrMmQBo4f8a3GvV7QVi4T_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.