Hudson/Maven/Mercurial 集成的良好参考
任何人都可以提供一个很好的参考资料(网络、书籍等)来解释如何设置 Hudson 使用 Maven/Nexus 和 Mercurial 进行构建/发布?我想设置我们的系统,以便根据 Mercurial SCM 项目的更新在 Hudson 中进行 Maven 构建,这些项目会自动部署到我们的本地 Nexus 服务器。有些项目依赖于其他项目。我可以找到很多参考文献来引用方程的一部分,但还没有找到任何详细说明所有部分的内容。
蒂亚!!
编辑
我认为我最初寻找的更多的是如何以集成方式使用这些工具的一般概述。然后我就可以深入研究细节。我正在寻找的是如何使用 Hudson 进行/验证构建,并根据结果将工件推送到适当的 Maven/Nexus 存储库(快照或非快照),也可能将应用程序从 Hudson 部署到我们的预构建版本。产品系统。我使用 Mercurial 的事实是偶然的。
希望这能澄清并且不会混淆我的问题......
Can anyone provide a good reference (web, book etc.) that explains how to set up Hudson to do builds/releases using Maven/Nexus and Mercurial? I would like to set up our system to do Maven builds in Hudson based on updates to our Mercurial SCM projects which are automatically deployed to our local Nexus server. Some of the project are dependent on others. I can find quite a few references that refer to one part of the equation, but haven't found anything that details all the pieces together.
TIA!!
EDIT
I think what I am looking for initially is more of a general overview of how to use these tools in an integrated manner. And then I can delve into the details. What I'm looking for is how to use Hudson to do/verify builds and based on the results, push the artifacts to the appropriate Maven/Nexus repository (snapshot or not) and also possibly deploy applications from Hudson as well to our pre-prod systems. The fact that I'm using Mercurial is incidental.
Hopefully that clarified and didn't muddy my question...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不了解书籍,我通过使用 Hudson 帮助进行了集成。
不过,我认为,有一个区域完全不清楚:提供您自己的
settings.xml
版本(您可以在其中设置自定义存储库、配置文件等)以下是步骤:
现在您已准备好设置 Maven 项目
通过自定义设置,您可以提供部署凭据、自定义配置文件等。
我真的希望 Hudson 团队在 Maven 构建步骤的帮助中提供类似的说明,而不是 maven.apache.org 网站上“设置参考”的链接。
至于mercurial集成,快速搜索返回了这篇文章-> http://www.ashlux。 com/wordpress/2010/06/16/triggering-hudson-builds-with-mercurial-hooks/
我不是 Mercurial 专家,但文章是一致的与我们用于 SCM 集成的设置。
I don't know about the books, I did our integration by using Hudson help.
I think, though, that one area is totally not clear out of the box: providing your own version of
settings.xml
( that's where you may set custom repository, profiles, etc )Here are the steps:
Now you are ready to setup Maven project
With custom settings you can provide deploy credentials, custom profiles, etc.
I really wish Hudson team would have provided similar instructions in their help for Maven build step, instead of links to 'Settings Reference' at maven.apache.org website.
As for mercurial integration, quick search returned this article -> http://www.ashlux.com/wordpress/2010/06/16/triggering-hudson-builds-with-mercurial-hooks/
I am not mercurial expert, but the article is consistent with the setup we used for our SCM integration.
我写了一篇博客,讨论使用 Jenkins 和 Maven 设置项目,如果我是对的,Jenkins 是 Hudson 的衍生产品。尝试一下可能会有所帮助
http://prasannatalakanti.blogspot.com /2011/08/continuous-integration-using-open.html
I wrote a blog which talks about setting up project using Jenkins and maven, If i am right Jenkins is a spin off from Hudson. Try it out it might help
http://prasannatalakanti.blogspot.com/2011/08/continuous-integration-using-open.html