Using cruisecontrol with subversion_http: // raibledesigns.com/rd/entry/using_cruisecontrol_with_subve

Source: Internet
Author: User

Using cruisecontrol with subversionThis 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 haveCruisecontrol setup filesAnd 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 svantAnd extract it to yourWorkDirectory.
  • 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 has ented on the Wiki and checked into appfuse's cvs. posted inJavaAtAug 24 2005, 10:24:26 am MDT 4 comments

Comments:

Matt, I went through the same exercise a couple of months back for connector/J. what I found was _ Really _ Nice about moving to this setup is that the amount of network traffic consumed checking for new versions is much, much less with SVN than it was when cruisecontrol was using CVS... basically checking for the repository version #, versus scanning a large chunk of the history from CVS. (I run crui Se control locally, the source repositories for MySQL are in Sweden, SO _ this _ was a big issue for me !). -Mark

PostedMark donewsOn August 24,200 5 at am MDT#

Matt, you might want to try out Luntbuild. You can get projects up and running in literally 15 minutes -- it's all configured via a webapp. the only issue I 've had with it is that it cannot be run easily as a Windows service. otherwise, it's the ideal build management system.

PostedAshish KulkarniOn August 25,200 5 at am MDT#

Installing luntbuild on Fedora Core 3, JDK 1.5 and resin, first impressions:

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:

---snip---2005-08-30 20:06:08,672 WARN  net.sf.ehcache.CacheManager - CacheManager already shutdown2005-08-30 20:06:08,672 INFO  com.luntsys.luntbuild.utility.Luntbuild - application shutdown complete2005-08-30 20:06:28,393 INFO  com.luntsys.luntbuild.utility.Luntbuild - Leaving application initialization2005-08-30 20:21:23,460 INFO  com.luntsys.luntbuild.utility.Luntbuild - Enter application shutdown2005-08-30 20:21:23,466 WARN  net.sf.ehcache.CacheManager - CacheManager already shutdown2005-08-30 20:21:23,467 INFO  com.luntsys.luntbuild.utility.Luntbuild - application shutdown complete2005-08-30 20:21:43,245 INFO  com.luntsys.luntbuild.utility.Luntbuild - Leaving application initialization2005-08-30 20:36:38,313 INFO  com.luntsys.luntbuild.utility.Luntbuild - Enter application shutdown---snip---

Then, spawning SVN commands works, however has this error:

---snip---2005-08-30 15:48:10,914 INFO  com.luntsys.luntbuild.BuildGenerator - Getting revisions for project "projectName"...2005-08-30 15:48:10,962 DEBUG com.luntsys.luntbuild.BuildGenerator - Execute command: Executing '/usr/local/bin/svn' with arguments:'log''svn://svnserver.mydomain.com:3692/projectName''--username''myname''--password''******''--non-interactive''-v''--xml''-r''{2005-08-30T22:33:34Z}:{2005-08-30T22:48:10Z}'The ' characters around the executable and arguments arenot part of the command.---snip---

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.

PostedMike GleesonOn August 31,200 5 at am MDT#

Matt, check our Parabuild-It's a Prduction-grade effeccial continuous integration and build management server. It supports subversion and is very easy to install (about 2 minutes ).

PostedSegey pashinOn October 02,200 5 at PM MDT#

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.