Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check out from svn and git in the same Jenkins job?

I have a Jenkins job which need to check out some source code located in svn and some located in git repositories. Is there any nice way to set up Jenkins to checking out from both?

Right now, I have Jenkins set up to check out from subversion and I am planning to run a script to get the sources I need from git before doing the build step.

Any suggestions of a better way to achieve this?

like image 771
yeforriak Avatar asked Jun 22 '11 12:06

yeforriak


1 Answers

There is: https://wiki.jenkins-ci.org/display/JENKINS/Multiple+SCMs+Plugin

However, using it has some caveats, so read through the entire page.

The other thing to do would be to checkout from one of the SCMs using Jenkins, and from the other using the command line in "Execute Shell" or "Execute Batch Command". However, this will not build on changes for the second SCM.

like image 84
Sagar Avatar answered Sep 28 '22 06:09

Sagar