Tuesday, 15 March 2011

How to trigger build for changes in a subdirectory of a Git repo when using CruiseControl.Net? -



How to trigger build for changes in a subdirectory of a Git repo when using CruiseControl.Net? -

i'm in process of converting using svn repos git repos our codebase. attempting maintain bulk of our existing build/deploy process during transition, means building our existing cruisecontrol.net ci server.

the problem i'm running have several different app directories underneath git root, keeping me detecting alter in specific subfolder , building related application, such as:

../gitreporoot/appone ../gitreporoot/apptwo

traditionally i've set svn working directory [../gitreporoot/appone] , detected changes off build appone, far can tell there no way watch subdirectory using git.

i'm not cruisecontrol.net expert means, perhaps i'm missing or there way of achieving same end?

depending on how have sourcecontrol block utilize inclusion/exclusion filters command build triggering.

see: http://www.cruisecontrolnet.org/projects/ccnet/wiki/filtered

for example:

<sourcecontrol type="filtered"> <dynamicvalues /> <exclusionfilters /> <inclusionfilters> <pathfilter> <pattern>appone</pattern> </pathfilter> <pathfilter> <pattern>apptwo</pattern> </pathfilter> </inclusionfilters> <sourcecontrolprovider type="git"> <autogetsource>true</autogetsource> <branch>master</branch> <commituntrackedfiles>false</commituntrackedfiles> <dynamicvalues /> <executable>c:\program files (x86)\git\bin\git</executable> <fetchsubmodules>false</fetchsubmodules> <repository>**repo**</repository> <tagcommitmessage>ccnet build {0}</tagcommitmessage> </sourcecontrolprovider> </sourcecontrol>

note: default pathfilter elements case-sensitive, can disabled so:

<pathfilter> <casesensitive>false</casesensitive> <pattern>appone</pattern> </pathfilter>

see http://www.cruisecontrolnet.org/projects/ccnet/wiki/pathfilter other options

git cruisecontrol.net

No comments:

Post a Comment