如何为两个单独的版本配置 CruiseControl?
我正在尝试将 CruiseControl 配置为在每天凌晨 3:00 和每次修改源代码时构建项目。这是我到目前为止在 project.xml
中所做的(它不起作用,日常构建没有完成):
...
<schedule interval="120">
<maven2 … />
<maven2 … time="0300"/>
</schedule>
...
我做错了什么?
I'm trying to configure CruiseControl to build the project on every modification of source code and every day at 3:00am. This is what I've done so far in project.xml
(and it doesn't work, daily builds are not done):
...
<schedule interval="120">
<maven2 … />
<maven2 … time="0300"/>
</schedule>
...
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我通常使用 cc.net,但是当我正确理解文档时,您有两个选择:
requireModifications
属性设置为false
(这不完全是您想要的)您的配置会发生以下情况:“修改”构建将全天运行,因此在凌晨 03:00 CruiseControl 无法检测到任何修改(至少我认为如此)。由于没有任何修改,因此不会运行每日构建。
来自文档:
I usally use cc.net, but when I understand the documentation correctly you have two options:
requireModifications
attribute tofalse
(which is not exactly what you want)What happens with your configuration is the following: The "modification" build will be run throughout the day and thus at 03:00 am CruiseControl cannot detect any modifications (at least I would assume so). As there are no modifications the daily build is not run.
From the documentation:
据我了解 CruiseControl 不可能做到这一点:(
As I understand there is no possibility in CruiseControl to do this :(
我们监听 gitrepo 中的更改并每天晚上进行夜间构建,我们这样做:
正如您在此处看到的,这里的线索是定时构建放置在
modificationset
中,而不是计划
,因此在每个计划时间它都会检查 git 存储库是否已更改或是否到了进行夜间构建的时间。We listen for changes in a gitrepo and do nightly builds every night, we do it like this:
As you see here the clue here is that the timed build is placed in the
modificationset
, not theschedule
, so at each scheduled time it will check if either the git repo has changed or the time has come to do the nightly build.我正在为 CruiseControl.net 使用 ScheduleTrigger 。
不久前,我将 CI 服务器从 CC.net 迁移到 TeamCity - 请看一下(他们也有免费版本)。配置起来更好、更容易(告别那些巨大的、难以管理的 XML 配置文件;-)
I was using ScheduleTrigger for CruiseControl.net.
Some time ago I've migrated CI server from CC.net to TeamCity - do take a look at it (they have free version as well). It's much better and easier to configure (say goodbye to those huge unmanageable XML config files;-)
我想到了一个办法,将构建脚本拆分出来制作插件。
例如: https://github.com/LightWare/LightCI/blob/master/配置.xml
I thought of a way, the build script split to make plug-ins.
For example: https://github.com/LightWare/LightCI/blob/master/config.xml