Using CruiseControl with Subversion
This morning, I had the pleasure of setting up an AppFuse-based project to run under CruiseControl. Normally, this is very easy to do because I have the CruiseControl setup files and instructions. However, this project uses Subversion instead of CVS. Luckily, Subversion is easy to use and I was able to modify things to work quite easily. Below are the steps you can take to modify your AppFuse project to run under CruiseControl and Subversion.
- Download svant and extract it to your work directory.
- In build.xml, change your "cvs" target to "svn" and change the tasks appropriately.
<path id="svn.classpath"> <fileset dir="svnant-1.0.0-rc1/lib" includes="*.jar"/> </path> <taskdef resource="svntask.properties" classpathref="svn.classpath"/> <target name="svn"> <delete dir="checkout/appfuse"/> <svn> <checkout url="https://svn.java.net/svn/appfuse/trunk" revision="HEAD" destPath="checkout/appfuse" /> </svn> </target>
- Modify the "test" target in build.xml to depend on "svn".
- In config.xml, change the <modificationset> to be <svn LocalWorkingCopy="/home/cc/work/checkout/appfuse"/> instead of the <cvs> equivalent.
The instructions have been documented on the wiki and checked into AppFuse's CVS.
Posted by Mark Matthews on August 24, 2005 at 05:32 PM MDT #
Posted by Ashish Kulkarni on August 25, 2005 at 06:06 AM MDT #
It was quick and easy with Subversion, and yes it looks well designed.
two problems:
When the framework detects a problem, it shuts down and restarts itself. From what I see, the details are minimum and occurs every 15 minutes.
the logs have the following messages:
Then, spawning svn commands works, however has this error:
the issue is that the command exits with a non-zero status, so the build is logically broken even though everything between svn, java and ant work fine.
Off to try CruiseControl, then buildbot next.
Posted by Mike Gleeson on August 31, 2005 at 05:34 PM MDT #
Posted by Segey Pashin on October 02, 2005 at 10:32 PM MDT #