Multiple git repositories in a single jenkins job

4,540 views
Skip to first unread message

Santhosh Hari

unread,
Dec 14, 2015, 5:41:25 AM12/14/15
to Jenkins Users
Hello everyone,

 I have a task wherein I want to check out multiple git repositories and prepare a build artifact out of it. I m using Multiple SCM  plugin in jenkins wherein am specifying multiple git repositories.
I expect the jenkins workspace folder to have all the checked out projects in their  respective folders name ( say for example workspace/gitproject_1 ,workspace/gitproject_2.....workspace/gitproject_n.
But I always get only the last checked out project and the others are not available.

Have any one come across a similar scenario. Any help is appreciated.

Thanks
Santhosh

Mark Waite

unread,
Dec 14, 2015, 6:02:07 AM12/14/15
to Jenkins Users
The behavior you're describing would lead me to guess that either the git configurations under "Multiple SCMs" do not each have the "Additional Behaviour" defined "Checkout to a specific subdirectory", or the job has "Git" checked under the SCM section instead of "Multiple SCM".

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/11c1c6ff-f41b-4984-a4fd-b85e6e0d502c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Santhosh Hari

unread,
Dec 15, 2015, 1:04:02 AM12/15/15
to Jenkins Users

Yes Mark you are right !! I dint add additional behavior. Now I gave a checkout to local sub directory and its working now !! :-)

Thanks
Santhosh
Reply all
Reply to author
Forward
0 new messages