简体   繁体   中英

How to configure hudson to ignore changes under specified SVN folders?

I'm looking for a way to ignore changes under specified SVN folders in Hudson. It's the same thing as exclude folders in TeamCity and filters in CC.Net. I haven't found any configuration option under SVN GUI configuration.

In Hudson 1.334, in the build configuration, under Subversion -> Advanced..., there are three Exclusion boxes. If it's polling for changes, Hudson will ignore changes that match these exclusions when determining whether to trigger a build. You can tell Hudson to ignore files/folders (Excluded Regions), commits by particular users, or files with a particular subversion revprop.

我通过转到工作区并运行此命令来完成它

svn propedit svn:ignore ./ignore_this_dir

Whatever you add to the Excluded Regions field make sure has the same path as in the changes log. for example if in the changes you have:

/branches/Update3/trunk/build/Win32/Release.exe

then use the very same path in the Excluded Regions too:

/branches/Update3/trunk/build/Win32/Release.exe

I think the explanation here it that you have to use the path starting from the svn repository name and not the one related to the working copy of the repo.

I have somewhat the same problem. Have a project that is organizationally under a main project, but is not to be build with the main project. It is sat up as a standalone build on Hudson.

Illustration:

  • main
    • sub1
    • sub2
    • sub3

So I thought that I could just add "/trunk/sub3/.*" in the "Excluded regional" field under the "Source Code Management" in the Hudson? But this does not seem to have any effect. The main project builds when I do changes under the sub3 project. Thought this was the intention of the "exluded regions" field.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM