CruiseControl.NET中的辅助支持-如何清理和升级更新构建文件夹? [英] mercurial support in CruiseControl.NET - how to clean & update build folder?

查看:67
本文介绍了CruiseControl.NET中的辅助支持-如何清理和升级更新构建文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Mercurial源代码控制块在CruiseControl.NET中,并且我将其设置为autoGetSource,但是某些文件(例如,基于当前时间的版本号)在构建过程中发生了变化.因此,对于下一个版本,某些文件已更改,因此autoGetSource失败.

I'm using the Mercurial source control block in CruiseControl.NET, and I have it set to autoGetSource but some of the files (such as version number, based on current time) change as part of the build. So for the next build, some of the files are changed so autoGetSource fails.

有没有一种方法可以告诉CruiseControl.NET执行hg update -C,因此更改文件不是问题.还是有更好的方法在开始构建之前清理我的构建文件夹?

Is there a way I can tell CruiseControl.NET to do a hg update -C so changed files aren't a problem. Or is there a better way of cleaning out my build folder before starting a build?

推荐答案

在hgrc文件中,无论是在项目中,在CC服务器上还是在CC用户的配置文件目录中,您都可以输入:

In a hgrc file, either in the project, on the CC server, or in the CC user's profile directory, you could put:

[defaults]
update = -C

或者更好(因为[defaults]被皱眉了)

or perhaps better (since [defaults] is frowned on)

[hooks]
pre-update = hg revert --all --no-backup

这篇关于CruiseControl.NET中的辅助支持-如何清理和升级更新构建文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆