Sourceforge 每日构建

发布于 2024-07-13 10:31:23 字数 358 浏览 7 评论 0原文

我目前维护着一个托管在 SourceForge 中的开源项目。 我的项目是使用 ANT 构建脚本用 Java 编写的。 (Ant 安装了一些扩展,但现在让我们忽略它。)

不幸的是,似乎没有简单的方法来自动生成每日构建。 有什么我可以使用的解决方法吗? 这就是我想要的:

  1. 它应该始终使用最新的 SVN 版本。
  2. 它应该构建它。
  3. 应该在网上发布。 如果失败,则应发布错误报告。
  4. 这些任务应该自动完成。

我怎样才能做到这一点? 如何模拟 SourceForge 中托管项目的自动每日构建?

I currently mantain an open-source project hosted in SourceForge.
My project is written in Java using ANT build scripts. (Ant has a few extensions installed, but let's ignore that for now.)

Unfortunately, there seems to be no easy way to automatically generate daily builds. Is there any workaround I can use. Here is what I want:

  1. It should always use the most recent SVN version.
  2. It should build it.
  3. It should publish it online. If it fails, it should publish the error report.
  4. These tasks should be done automatically.

How can I do this? How can I emulate automatic daily builds of a project hosted in SourceForge?

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

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

发布评论

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

评论(2

余罪 2024-07-20 10:31:23

据我了解您的问题,您需要的是持续集成工具。 它将为您汇集 SCM、启动构建并发布/存储错误报告,以防失败。

我最喜欢的是 Hudson:

https://hudson.dev.java.net/

As far as I understood your problem what you need is a Continuous Integration tool. It will pool the SCM for you, start a build and publish/store the error report in case of failure.

My favorite one is Hudson:

https://hudson.dev.java.net/

迷爱 2024-07-20 10:31:23

我认为 SF 有一个关于提交的电子邮件的钩子。

http://apps.sourceforge.net/trac/sitedocs/wiki/Subversion
http://apps.sourceforge.net/trac/sitedocs/ wiki/Subversion%20hook%20scripts#svnnotify

我想你可以触发它。

或者,使用 (svn up) 每小时(或您想要的任何时间段)检查最新版本的过程是否足以触发构建? (记录最后一个已知的构建版本,如果当前版本不同,则触发构建)

我对它们不熟悉,但我怀疑进行构建的第三方工具(CI/持续集成)有一种确定方法来自 SVN 的构建触发事件。

I think SF has a hook for emails on commits.

http://apps.sourceforge.net/trac/sitedocs/wiki/Subversion
http://apps.sourceforge.net/trac/sitedocs/wiki/Subversion%20hook%20scripts#svnnotify

I would imagine that you could trigger off of that.

Alternatively a process that checks the latest revision every hour (or whatever period you want) using (svn up) would be enough to trigger a build? (keep a record of the last known built revision and if the current revision if different, then trigger a build)

I am not familiar with them, but I suspect third party tools (CI/Continuous integration) to do builds have a way of determining a build trigger event from SVN.

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