Monday, June 14, 2010

GIT with CruiseControl

To get GIT to work as a plugin within cruisecontrol, you need to configure like this:

<plugin name="git" classname="net.sourceforge.cruisecontrol.sourcecontrols.Git" />

This is not obvious when looking here:

The resulting config.xml file will look like this:

<project name="socialgo" buildafterfailed="true">

<currentbuildstatuslistener file="logs/${}/status.txt"/>

<modificationset quietperiod="60">
<git localWorkingCopy="projects/${}/source/"/>

<plugin name="git" classname="net.sourceforge.cruisecontrol.sourcecontrols.Git" />

<antbootstrapper anthome="apache-ant-1.7.0" buildfile="projects/${}/build.xml" target="build" />

<schedule interval="300">
<ant anthome="apache-ant-1.7.0" buildfile="projects/${}/build.xml"/>

<merge dir="projects/${}/target/test-results"/>

<artifactspublisher dest="artifacts/${}" file="projects/${}/target/${}.jar"/>


1 comment:

SAK said...


Good post.

We are currently using CVS on crise control(for websphere commerce deployment).Now we decided to migrated from cvs to GIT.

Could you please let know what are the configurations that need to change on crice control...etc