views:

36

answers:

2

hi,

I want to run a task/build after file change in my repository. when I configure the "Interval trigger": buildCondition="IfModificationExists", the task doesn't execute although I changed a file and made a Commit.. the log writes: No modifications detected. how can I run the task just after file change? thanks, yehi

A: 

personally id do the following:

<triggers>
<intervalTrigger initialSeconds="0" /> 1
</triggers>
<sourcecontrol type="<type here>">

as that polls the source control system and then only build if there are changes

please try that and see

PaulStack
thanks for your answer.. I tried, but it doesnt execute the task (like when I make force Build) although i can see it recognize my change- in the ccnet.log file. maybe task is different from build?
yehiel
+1  A: 

There is a bug in Mercurial Source Control as you can see here : http://stackoverflow.com/questions/3498425/cruisecontrol-nets-filtered-source-control-provider-not-detecting-modifications http://groups.google.com.ag/group/ccnet-user/browse_thread/thread/23cc02e1258a63ec

Otherwise, your configuration seems correct, except you don't have login information in your source control block.

Benjamin Baumann