CruiseControl.NET 每晚构建 IfModificationExists 自上次构建标签

发布于 2024-07-29 19:04:24 字数 638 浏览 2 评论 0原文

我使用一台服务器连续且每晚构建相同的项目; 但是我希望夜间构建仅在白天存在修改的情况下构建。 我希望通过两个构建都使用相同工作文件夹的约束来实现这一目标。

我正在考虑的两个选项是:

  1. 轮询连续构建,并且仅在发生连续构建时才构建夜间构建 - 可能使用某些令牌系统(连续构建设置令牌,夜间清除令牌)。

  2. 运行预构建任务将源代码恢复到上次构建时间

我倾向于第二个选项,因为它解耦了构建脚本,但这似乎是一项更困难的任务。

对此的建议和技巧将不胜感激!

添加信息:

CI 构建是快速构建 一种配置的解决方案和 也许运行一些快速的单元测试。

夜间构建会清理构建 环境,构建软件,打包成 安装程序,运行扩展测试,标签 源代码存储库,部署 将安装程序复制到服务器共享 手动测试人员接听,并发送电子邮件 测试团队构建可测试的版本 已经做出来了。

我只想要 如果有的话,每晚都会发生构建 白天进行任何签到,这样测试人员就不会受到基本相同构建的重复电子邮件的困扰。

I am using one server to build the same project both continuously and nightly; however I would like the nightly build to only build if a modification exists during the day. I am hoping to achieve this with the constraint that both builds use the same working folder.

The two options I am considering are:

  1. Polling the continuous build and only build the nightly build if a continuous build has occurred - possibly using some token system (continuous build sets token, nightly clears token).

  2. Running a prebuild task to revert the source code to the Last Build Time

I am leaning towards the second option as it decouples the build scripts, but it seems to be a much harder task.

Suggestions and tips to doing this would be appreciated!

Added Information:

The CI build is a quick build of the
solution in one configuration and
maybe runs some fast unit tests.

The nightly build cleans the build
environment, builds the software, packages into an
installer, runs extended tests, labels
the source code repository, deploys
the installer to a server share for
manual testers to pick up, and emails
the test team that a testable build
has been made.

I only want the
nightly build to occur if there were
any check-ins during the day so that testers don't get plagued with repeat emails for essentially the same build.

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

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

发布评论

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

评论(2

天冷不及心凉 2024-08-05 19:04:24

我可能过度简化了这个任务,但你不能简单地在项目上设置两个触发器吗? 一个用于连续构建的间隔触发器和一个用于夜间构建的具有 IfModificationExists 条件的计划触发器。

<triggers>
  <intervalTrigger seconds="60" name="Continuous" />
  <scheduleTrigger time="23:30" buildCondition="IfModificationExists" name="Scheduled">
      <weekDays>
        <weekDay>Monday</weekDay>
      </weekDays>
  </scheduleTrigger>
</triggers>

I might be over simplifying this task but can't you simply setup two triggers on the project? One interval trigger for the continuous builds and one schedule trigger with the IfModificationExists condition for the nightly builds.

<triggers>
  <intervalTrigger seconds="60" name="Continuous" />
  <scheduleTrigger time="23:30" buildCondition="IfModificationExists" name="Scheduled">
      <weekDays>
        <weekDay>Monday</weekDay>
      </weekDays>
  </scheduleTrigger>
</triggers>
月牙弯弯 2024-08-05 19:04:24

我对我的新解决方案感到满意...

我在夜间构建(最好调用完整构建)上使用带有 ScheduleTrigger 和 prjectTrigger 的 MultiTrigger 和 WriteModification/ReadModification 对来传播修改历史记录,如 这个问题

I am happy with my new solution...

I use a MultiTrigger with a scheduleTrigger and a prjectTrigger on the nightly build (better to call full build) and WriteModification/ReadModification pairs to propagate the modification history like in this question.

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