CruiseControl.NET 每晚构建 IfModificationExists 自上次构建标签
我使用一台服务器连续且每晚构建相同的项目; 但是我希望夜间构建仅在白天存在修改的情况下构建。 我希望通过两个构建都使用相同工作文件夹的约束来实现这一目标。
我正在考虑的两个选项是:
轮询连续构建,并且仅在发生连续构建时才构建夜间构建 - 可能使用某些令牌系统(连续构建设置令牌,夜间清除令牌)。
运行预构建任务将源代码恢复到上次构建时间
我倾向于第二个选项,因为它解耦了构建脚本,但这似乎是一项更困难的任务。
对此的建议和技巧将不胜感激!
添加信息:
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:
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).
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我可能过度简化了这个任务,但你不能简单地在项目上设置两个触发器吗? 一个用于连续构建的间隔触发器和一个用于夜间构建的具有 IfModificationExists 条件的计划触发器。
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.
我对我的新解决方案感到满意...
我在夜间构建(最好调用完整构建)上使用带有 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.