Re: SVN and CruiseControl
Thomas Amundsen <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Here is a CruiseControl config.xml that will execute a build target in cc-build.xml, sending e-mails with JUnit tests results (resulting from a JUnitReport ant task in checkout/Nestor/reports/).
<cruisecontrol>
<project name="Nestor" buildafterfailed="true" requiremodification="false">
<bootstrappers>
<currentbuildstatusbootstrapper file="logs/Nestor/currentbuildstatus.txt" />
</bootstrappers>
<modificationset quietperiod="60">
<svn localworkingcopy="checkout/Nestor"/>
</modificationset>
<schedule>
<ant buildfile="cc-build.xml" target="build" antscript="/homes/whatever/user/apache-ant-1.7.1/bin/ant" antWorkingDir="../builds/" time="0300"/>
</schedule>
<log dir="logs/Nestor">
<merge dir="checkout/Nestor/build/test-results"/>
<merge dir="checkout/Nestor/reports/"/>
</log>
<publishers>
<currentbuildstatuspublisher file="logs/Nestor/currentbuildstatus.txt"/>
<htmlemail mailhost="smtp.server.com"
mailport="465"
username="username"
password="password"
usessl="true"
returnaddress="[email protected]"
buildresultsurl="http://localhost/cruisecontrol/buildresults/Nestor"
css="../cruisecontrol-bin-2.8.2/webapps/cruisecontrol/css/cruisecontrol.css"
xsldir="../cruisecontrol-bin-2.8.2/webapps/cruisecontrol/xsl/"
logdir="logs/Nestor/"
skipusers="true" spamwhilebroken="true">
<always address="[email protected]"/>
</htmlemail>
</publishers>
</project>
</cruisecontrol>
On Tue, 19 May 2009, Christopher Styles wrote:
> Hi,
>
> I'm using SVN as my repository and I want to build my applications using
> CruiseControl... Currently, I'm running my build (ant -f build.xml) and
> deployment (ant -f deploy.xml) scripts from the Windows Command Prompt, and
> these scripts do everything that I need them to do, but I want to put
> them in CruiseControl, so I can just click a button to execute them... I
> don't need CruiseControl to do anything, but kick off the scripts...nothing
> more, nothing less... So, with that said, does anyone have a stripped
> down example of a config.xml file that I could use just to kick off the
> scripts...??? My projects are located in the Windows file systems under
> "C:\svnviews"... I know projects are usually under
> "C:\CruiseControl\projects", but I don't want to move them... I would like
> them to stay where they are under "C:\svnviews"... Is there a configuration
> change that I need to make to the web.xml for the project to be
> found "C:\svnviews"...??? I would like for this to be as less invasive as
> possible...
>
> Thanks in advance for you help...
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects