git插件和哈德森 [英] git plugin and hudson

查看:175
本文介绍了git插件和哈德森的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Hudson作为我的连续集成工具。现在当从多个git存储库下拉源。我在我的工作空间中收到错误,只下拉列表中的最后一个存储库,并且构建失败。

I using Hudson as my continuous integrations tool. Now when pulling down sources from multiple git repositories. I am getting errors in my workspace only pulling down the last repository in the list and the build fails.

我理解当从多个git仓库下拉时,在我的工作区中创建了多个隐藏的 .git 目录。 git插件没有指定一种方式从我拉每个存储库到工作区中自己的目录。我如何实现这一点?我使用的是最新的 git插件工具

I understand that when pull down from multiple git repositories multiple hidden .git directories are created in my workspace. The git plugin doesn't specify a way from me to pull each repository into its own directory within the workspace. How do I achieve this? I am using the latest git plugin tool

请感谢你。

推荐答案

我宁愿使用 Hudson Git插件自然运行的方式:只拉一个Git仓库。

I would rather use the Hudson Git plugin the way it naturally runs: pulling only one Git repo.

除了Git仓库可以是 submodules ,每个子模块都是您想要导入到Hudson jib工作区的Git repos。

Except that Git repo could be a parent repo for submodules, each submodule being of the Git repos you wanted to import into the Hudson jib workspace in the first place.

这不是一个简单的解决方案,虽然,因为一个Git的父repo只引用Git子模块历史中的固定点。

这意味着如果你想要Git插件检测任何更改,子模块需要有新的提交(正常),但是父库repo也应该提交注册新的Git子模块引用。

That is not an "easy" solution though, since a Git parent repo only references "fixed" point in the Git submodules history.
That means if you want the Git plugin to detect any changes, the submodules need to have new commit (normal) but the parent repo should also be committed to register the new Git submodules references.

这篇关于git插件和哈德森的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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