Skip to content

Instantly share code, notes, and snippets.

@hunt3ri
Created July 30, 2012 14:16
Show Gist options
  • Save hunt3ri/3207194 to your computer and use it in GitHub Desktop.
Save hunt3ri/3207194 to your computer and use it in GitHub Desktop.
CCNET Sample Config
<project name="HuzuSocial-2">
<!--Create a label template that will create our tags as v2.0.buildnumber -->
<labeller type="defaultlabeller">
<prefix>2.0.25.</prefix>
<incrementOnFailure>false</incrementOnFailure>
<labelFormat>0000</labelFormat>
</labeller>
<!--Check for modifications every 60 seconds -->
<triggers>
<intervalTrigger seconds="60" name="continuous" />
</triggers>
<!-- Delete all previous files prior to getting files from Subversion -->
<prebuild>
<exec>
<executable>c:\_dev\ccnet\cleanDir\cleanDir.bat</executable>
<buildArgs>c:\_dev\ccnet\HuzuSocial-2</buildArgs>
</exec>
</prebuild>
<!-- Monitor trunk repository for check-ins -->
<sourcecontrol type="svn">
<trunkUrl>TRUNK-URL-HERE eg http://Huzu-Social-2-0/Apps/HuzuSocial/trunk</trunkUrl>
<workingDirectory>c:\_dev\ccnet\HuzuSocial-2</workingDirectory>
<username>USERNAME-HERE</username>
<password>PASSWORD-HERE</password>
<autoGetSource>true</autoGetSource>
<tagOnSuccess>true</tagOnSuccess>
<tagBaseUrl>TAGS-URL-HERE eg http://Huzu-Social-2-0/Apps/HuzuSocial/tags/Trunk</tagBaseUrl>
</sourcecontrol>
<!-- If a checkin is detected get nAnt to attempt a build - call the checked-out build file -->
<tasks>
<nant>
<executable>C:\Program Files (x86)\nant-0.91\bin\nant.exe</executable>
<baseDirectory>C:\_dev\ccnet\HuzuSocial-2\src\HuzuSocial.Build</baseDirectory>
<buildArgs>"-D:arg.temp.dir=c:\_dev\ccnet\HuzuSocial-2"</buildArgs>
<buildFile>Launch.build</buildFile>
<logger>NAnt.Core.XmlLogger</logger>
</nant>
</tasks>
<!-- Publisher tasks are post build tasks to alert people of the build status -->
<publishers>
<!-- Merge unit test output -->
<merge>
<files>
<file>
<![CDATA[C:\_dev\ccnet\HuzuSocial-2\src\HuzuSocial.App.Tests\bin\Release\HuzuSocial.App.Tests-results.xml]]>
</file>
</files>
</merge>
<!-- Stop logging -->
<xmllogger />
<!-- Send email detailing build progress -->
<email mailport="25" includeDetails="TRUE" useSSL="FALSE">
<from>support@huzu.com</from>
<mailhost>localhost</mailhost>
<users>
<user name="IainHunter" group="developers" address="EMAIL-ADDRESS-HERE"/>
</users>
<groups>
<group name="developers">
<notifications>
<notificationType>Always</notificationType>
</notifications>
</group>
</groups>
</email>
<!-- Store the last 25 build files -->
<artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="25" />
</publishers>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment