将Hudson配置为仅当检测到SVN中的更改时才执行构建或后构建操作 [英] Configure Hudson to only execute Build or Post Build actions if changes in SVN are detected

查看:307
本文介绍了将Hudson配置为仅当检测到SVN中的更改时才执行构建或后构建操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种方法可以配置Hudson只有在SVN / CVS中有更改时才执行Build或Post Build操作

Is there a way to configure Hudson to only execute Build or Post Build actions if there are changes in SVN/CVS

谢谢

推荐答案

您可以让Hudson轮询SCM的变更,只有在发现变更时才执行。

You can have Hudson poll the SCM for changes and only do things if it finds changes.

投票SCM:配置Hudson轮询
SCM中的更改。

Poll SCM: Configure Hudson to poll changes in SCM.

请注意,这将是一个
CVS的昂贵的操作,因为每个
轮询需要Hudson扫描
整个工作区并用
服务器验证它。考虑设置
push触发器,以避免此开销,
,如本文档


触发器远程构建(例如,从
脚本) :
如果要通过访问
特殊的预定义URL(方便
脚本)来使
触发新版本,请启用此选项。

Trigger builds remotely (e.g., from scripts): Enable this option if you would like to trigger new builds by accessing a special predefined URL (convenient for scripts).


的一个典型示例是从
源代码控制系统的钩子脚本
触发新构建,当某人刚刚将
更改为或从
脚本解析源控件
电子邮件通知。

One typical example for this feature would be to trigger new build from the source control system's hook script, when somebody has just committed a change into the repository, or from a script that parses your source control email notifications.

您需要提供一个
授权令牌以
字符串的形式,所以只有那些知道
的人才能远程触发这个
项目的构建。

You'll need to provide an authorization token in the form of a string so that only those who know it would be able to remotely trigger this project's builds.

这篇关于将Hudson配置为仅当检测到SVN中的更改时才执行构建或后构建操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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