Use git submodules  or git sparse checkout and you have to do it in cmd line 
git CLI in your Linux BuildStep instead of using "git" Jenkins plugin.
http://jasonkarns.com/blog/subdirectory-checkouts-with-git-sparse-checkout/

From: 
<[email protected]<mailto:[email protected]>> on 
behalf of kamlesh nattamai ramesh babu 
<[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Monday, September 26, 2016 at 8:50 AM
To: Jenkins Users 
<[email protected]<mailto:[email protected]>>
Subject: Merge Git Core Repo and Site Repo folder while Jenkins deployment

Hi Folks,

I need your advice badly.. We are Maintaining  2 GIT repo for handling code.

1. Core repo: This repo contains the core files which is commonly used for all 
the projects as a core base files.
2. Site repo: This repo contains the site wise file which will merge with core 
while GIT deployment.

Both CORE and SITE will get merged with each other while doing the GIT 
deployment.  We maintain the CORE plugins in the core repo and site wise 
plugins in site repo. So both the repo will contain the same folder name called 
"WP-CONTENT" which contain core plugins in core repo and site plugins in site 
repo. Both the folder will get merged while deploying the code thru GIT. I want 
to make this process automate thru JENKIN deployment but it is not happening.

I would like you guys share your esteemed knowledge to make this sort out..

Thanks,
Kamlesh

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/46e509ed-2734-41e1-9d31-76c17f43bffb%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/46e509ed-2734-41e1-9d31-76c17f43bffb%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D40EDA20.5DA63%25ingunawa%40cisco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to