将 GIT 集成到 Hudson 中
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这种设置可能的唯一方法是使用父存储库,它将您想要监视的每个存储库声明为 子模块。
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).