开发者

How to filter SVN branch in Hudson's POLL SCM?

We're using Hudson on an SVN repository that hosts a number of projects. One of these projects takes a long time to build, even if no files were changed. Right now Hudson's "Poll SVN" detects that the subversion repository has changed and will try to build the project, even if that change was in a different project.

Is there a way to set up "Poll SCM" to only respond to changes in a certain b开发者_运维技巧ranch?


How do you configure the Repository URL of the project (http://subversion.server/svn/project/trunk) or is it the main path of your repository (http://subversion.server/svn)?

If your Project consists of different modules that are spread out across the repository, you need to configure every location individually by adding more SVN locations.


If your repository looks like this:

svn://svn-server/repo/trunk/project-one/
svn://svn-server/repo/trunk/project-two/
svn://svn-server/repo/trunk/very-big-project/
svn://svn-server/repo/branches/project-one/
svn://svn-server/repo/tags/
(etc.)

Then set Hudson up like this:

Repository URL: svn://svn-server/repo/trunk/very-big-project

If the projects are independent (and don't need to be branched and tagged together) it might make more sense to have separate trunks for each project:

svn://svn-server/repo/project-one/trunk/
svn://svn-server/repo/project-one/branches/
svn://svn-server/repo/project-one/tags/
svn://svn-server/repo/project-two/trunk/
svn://svn-server/repo/project-two/branches/
(etc.)

Then Hudson would be

Repository URL: svn://svn-server/repo/very-big-project/trunk

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜