将 GIT 集成到 Hudson 中

发布于 2024-10-10 09:51:16 字数 282 浏览 0 评论 0原文

我有一个 Hudson 项目设置,基本上是“存储库的 URL”= D:/Development

假设我在 /SomeFolder/SomeProject/SomeProject.sln 下有一个 .NET 解决方案,如何让 Hudson 监视 Git 中的 /SomeFolder/SomeProject 文件夹?我是 git 新手,那么我应该为每个项目都有一个新的 Git 存储库吗?我已经将 SVN 与 Hudson 一起使用,并且能够轻松完成上述操作,因此我们将不胜感激任何帮助,

问候,

安德鲁

I have a Hudson project setup, basically "URL of repository" = D:/Development

Say I have a .NET solution under /SomeFolder/SomeProject/SomeProject.sln, how can I get Hudson to monitor the /SomeFolder/SomeProject folder in Git? I am new to git, so should I have a new Git repository for each project? I have used SVN with Hudson and was able to do the above easily, so any help would be greatly appreciated

Regards,

Andrew

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素食主义者 2024-10-17 09:51:16

我认为这种设置可能的唯一方法是使用父存储库,它将您想要监视的每个存储库声明为 子模块

Hudson 可能需要进行调整,以便在当前作业之前运行作业,以确保它在“git status”之前正确执行 git submodule update (我还没有测试过这个配置,所以也许这一步不是必需的)。

The only way I see this kind of setting possible would be to use a parent repo, which would declare each of the repos you want to monitor as submodules.

Hudson might need to be tweaked in order to run a job before your current job, in order to make sure it does the git submodule update properly, before its 'git status' (I haven(t tested this configuration, so maybe this step won't be necessary).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文