将 Hudson 配置为仅在检测到 SVN 中的更改时执行“构建”或“构建后”操作
有没有办法将 Hudson 配置为仅在 SVN/CVS 发生更改时执行构建或构建后操作
谢谢
Is there a way to configure Hudson to only execute Build or Post Build actions if there are changes in SVN/CVS
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以让 Hudson 轮询 SCM 是否有更改,并且仅在发现更改时才执行操作。
您还可以向 SCM 提交后挂钩添加一些内容,以触发 Hudson 构建。
You can have Hudson poll the SCM for changes and only do things if it finds changes.
You can also add something to your SCM post-commit hooks that will fire off a Hudson build.
它并不像查看修订号(如其他地方所述)那么简单,除非您的构建是针对整个 subversion 存储库的。 通常,您的项目共享单个 subversion 存储库,并且您正在构建一些子树。 全局修订号没有帮助。
“svn info [url_to_subtree]”将显示上次更改日期。 您可以解析它并确定它是否晚于上次构建日期并触发新的构建。
It is not as simple as looking at the revision number (as stated elsewhere) unless your build is for the entire subversion repository. Typically you have projects sharing a single subversion repository and you are building some sub-tree. The global revision number doesn't help.
'svn info [url_to_subtree]' will show the Last Changed Date. You can parse this and figure out if it is later than your last build date and trigger a new build.