Hudson 构建脚本位置 - 推荐吗?

发布于 2024-12-07 04:40:39 字数 443 浏览 0 评论 0原文

我已经与 Hudson 和 Nant 一起完成了我的项目构建自动化:)。

我的项目结构类似于

$/Project
  build.scripts
    script1.build
    script2.build
    build.properties.xml
  Code
    Project1
    Project2

So Hudson 从根 $/Project 下载到工作区文件夹。

一切都很好,因为 build.scripts 在工作区中,我很容易运行它们,但是困扰我的是,由于构建脚本在工作区中,所以我无法对 Hudson 进行编程以自动运行准时或更改,因为它总是会检测到文件的更改(请注意 build.properties.xml,我在构建时签出并签入以存储一些统计信息)。

您建议将这些文件放在哪里,并且仍能获得源代码控制的优势?

I'm already finishing my project build automation :) with Hudson and Nant.

My project structure is something like

$/Project
  build.scripts
    script1.build
    script2.build
    build.properties.xml
  Code
    Project1
    Project2

So Hudson downloads from the root $/Project to the workspace folder.

And everything is ok since the build.scripts are in the workspace, I run them very easily, however what is bugging me is the fact that since the build scripts are inside the workspace, then I can't program Hudson to run automatically either based on time or changes because it will always detect changes to the files (note build.properties.xml which I check out and check in at build time to store some stats).

Where do you recommend these files to go in and still get the advantage of having them source-controlled?

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

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

发布评论

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

评论(1

清风疏影 2024-12-14 04:40:39

我最终做的是不签入对这些文件的更改。我更改了 CI 工作流程以创建另一个文件(仅限工作区本地),并将更改写入其中。

这样,我仍然可以在某个地方写入最后的构建信息来获取它,并避免 Jenkins 检测到更改的问题。

PS:我从 Hudson 改为 Jenkins,因为我看到大多数插件都摆脱了前者。过渡过程过于顺利,令人难以置信。

What I ended up doing is to NOT check-in changes to those files. I changed my CI workflow to create another file (local to the workspace only) where the changes are written to.

This way, I still get the last build info written somewhere to pick it up, and avoid the issue of Jenkins detecting the change.

PS: I changed from Hudson to Jenkins since I saw that most plugins ran away from the former. The transition was too smooth to be true.

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