cruisecontrol.net - How to make ccnet update multiple projects independently in a single mercurial repo? -


i have central hg repository multiple subprojects in it. this:

/hg_central     /subproject-a     /subproject-b     /... 

i trying set cc.net server builds subproject if directory has been updated.

my current problem once 1 of subprojects has been updated , built, server not find modifications other subprojects, since mercurial has updated whole repository. cc.net not build other subprojects, unless update has been done. i've tried using inclusionfilters without success. can't afford have seperate workingdirectory each subproject. missing make possible?

my ccnet config file this:

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">  <project name="subproject-a">     <workingdirectory>g:\hg-clone\</workingdirectory>     <triggers>         <intervaltrigger name="continuous" seconds="60" buildcondition="ifmodificationexists" initialseconds="20" />     </triggers>     <sourcecontrol type="filtered">     <inclusionfilters>         <pathfilter>             <pattern>/subproject-a/**/*</pattern>         </pathfilter>     </inclusionfilters>     <sourcecontrolprovider type="hg" autogetsource="true" >         <repo>http://myserver/myproject</repo>         <multipleheadsfail>false</multipleheadsfail>     </sourcecontrolprovider>     </sourcecontrol>     <tasks>         <exec>             <executable>mybuild.bat</executable>         </exec>     </tasks> </project> <project name="subproject-b">     <workingdirectory>g:\hg-clone\</workingdirectory>     <triggers>         <intervaltrigger name="continuous" seconds="60" buildcondition="ifmodificationexists" initialseconds="20" />     </triggers>     <sourcecontrol type="filtered">     <inclusionfilters>         <pathfilter>             <pattern>/subproject-b/**/*</pattern>         </pathfilter>     </inclusionfilters>     <sourcecontrolprovider type="hg" autogetsource="true" >         <repo>http://myserver/myproject</repo>         <multipleheadsfail>false</multipleheadsfail>     </sourcecontrolprovider>     </sourcecontrol>     <tasks>         <exec>             <executable>mybuild.bat</executable>         </exec>     </tasks> </project> </cruisecontrol> 

with svn works charm, i'm bit surprised mercurial isn't.

either way, possible workaround define single project purpose update source , other project should have project trigger project.

hth


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -