Hudson/Maven/Mercurial 集成的良好参考

发布于 2024-12-05 12:30:14 字数 466 浏览 1 评论 0原文

任何人都可以提供一个很好的参考资料(网络、书籍等)来解释如何设置 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 技术交流群。

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

发布评论

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

评论(2

魔法唧唧 2024-12-12 12:30:15

我不了解书籍,我通过使用 Hudson 帮助进行了集成。

不过,我认为,有一个区域完全不清楚:提供您自己的 settings.xml 版本(您可以在其中设置自定义存储库、配置文件等)

以下是步骤:

  1. 转到Hudson->管理Hudson->Maven 3配置
  2. 在“文档”选项卡下单击“添加”将
  3. “类型”下拉列表更改为“设置”
  4. 给它一个有意义的名称(例如my-custom-settings )
  5. 剪切并粘贴您通常放入 $HOME/.m2/settings.xml 的整个 xml
  6. 点击屏幕底部的“保存”按钮。

现在您已准备好设置 Maven 项目

  1. 创建新作业并将其绑定到源代码管理
  2. 添加“调用 Maven 3”构建步骤
  3. 单击“高级”按钮
  4. 在展开的列表中找到“设置”下拉列表
  5. 选择“我的自定义设置”。

通过自定义设置,您可以提供部署凭据、自定义配置文件等。

我真的希望 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:

  1. Go to Hudson->Manage Hudson->Maven 3 Configuration
  2. Under 'Documents' tab click 'Add'
  3. Change 'Type' drop-down to 'SETTINGS'
  4. Give it a meningful name ( e.g. my-custom-settings )
  5. Cut and paste the WHOLE xml that you would usually put into $HOME/.m2/settings.xml
  6. Hit 'Save' button at the bottom of the screen.

Now you are ready to setup Maven project

  1. Create new job and tie it to your source control
  2. Add 'Invoke Maven 3' build step
  3. Click 'Advanced' button
  4. In expanded list find 'Settings' drop down
  5. Choose 'my-custom-settings'.

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.

画骨成沙 2024-12-12 12:30:15

我写了一篇博客,讨论使用 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

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