Skip to content

Instantly share code, notes, and snippets.

Created June 3, 2014 16:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4f30f8cdf2141128b79b to your computer and use it in GitHub Desktop.
Save anonymous/4f30f8cdf2141128b79b to your computer and use it in GitHub Desktop.
<cruisecontrol>
<project name="myproject">
<!-- check for svn changes -->
<modificationset quietperiod="0">
<svn localworkingcopy="/home/builduser/checkouts/myproject/" username="u" password="p"/>
</modificationset>
<!-- builders to handle noticed changes -->
<schedule interval="60">
<exec time="0600"
workingdir="/home/builduser/checkouts/myproject/"
command="./buildproject.sh" args="--cleanbuild --package --test" />
<exec time="1800"
workingdir="/home/builduser/checkouts/myproject/"
command="./buildproject.sh" args="--cleanbuild --package --test" />
</schedule>
<!-- handle builds that work -->
<publishers>
<onsuccess>
<!-- copy to archive -->
<artifactspublisher dest="/home/builduser/artifacts/myproject"
dir="/home/builduser/checkouts/myproject/build_output" />
<!-- push build to demo machine for internal users to play with -->
<execute command="/home/builduser/checkouts/myproject/deploy_to_demobox.sh" />
</onsuccess>
</publishers>
<!-- configure log and artifact delete rules -->
<log dir="/home/builduser/logs/myproject">
<delete every="30" unit="DAY" />
<deleteartifacts every="30" unit="DAY" />
</log>
</project>
</cruisecontrol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment