詹金斯:多Git仓库的一个项目 [英] Jenkins: Multiple Git repositories for one project

查看:286
本文介绍了詹金斯:多Git仓库的一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要建立使用两个Git仓库的项目。其中一个包含源$ C ​​$的c,而另一个具有构建和部署脚本。

I want to build a project using two Git repositories. One of them contains of the source code, while the other has the build and deployment scripts.

我的问题是,我需要为建设和项目的不同部分(大项目,多个存储库,同样的构建和部署脚本)部署的存储库,但詹金斯似乎并不能够处理这个(或我不知道/怎么没发现)。

My problem is that I need to have a repository for building and deployment of different parts of the project (big project, multiple repositories, same build and deployment scripts), but Jenkins does not seem to be able to handle this (or I don't know/didn't find how).

推荐答案

是的,詹金斯可以处理这个问题。只需使用多的SCM 源下code管理,添加您的仓库,然后去各个仓库的高级部分。在这里,您需要设置回购本地子目录(可选)独特的SCM名(可选)

Yes, Jenkins can handle this. Just use Multiple SCMs under Source Code Management, add your repositories and then go to the Advanced section of each repository. Here you need to set Local subdirectory for repo (optional) and Unique SCM name (optional).

您库将被拉至您所设置的,那么你可以在任何你想要的顺序构建它们的本地子目录。

Your repository will be pulled to the Local subdirectory which you have set so then you can build them in any order you want.

哈里什的答案更新 - 你需要安装的多的SCM为了实现这一功能插件

Updating per harishs answer - you need to install Multiple SCMs Plugin in order to achieve this functionality.

这篇关于詹金斯:多Git仓库的一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆