Manually installing DamageControl into CVS
This section explains how to DamageControl a CVS module.
A CVS module is DamageControlled by configuring the CVS repository to fire an event (over XML/RPC) to the DamageControl server. This is done by editing some files in the CVSROOT module.
Install DamageControl on the source control server
Refer to Subversion Access for more instructions.
Check out CVSROOT
First check out the CVSROOT of your project.
cvs -d<cvsroot to your repository> checkout CVSROOT
Install the trigger
Add the following line to CVSROOT/loginfo.
<name of module> <path to your DamageControl installation>/bin/requestbuild(.cmd) --url http://your-damagecontrol-host:4712/private/xmlrpc --projectname <name of project>
Explanation:
- The first token <name of module> is the name of the CVS module for which you want to enable DC builds.
- The rest of the line is an invocation to a script in your DamageControl installation. Append .cmd to the script if on Windows, otherwise leave it out.
- The url to your DamageControl server is usually http://localhost:4712/private/xmlrpc if running on the same host as your source control system.
- The projectname should be exactly the same project name you used to configure your project in DamageControl (yes, it is sensitive to case).
- This will override any DEFAULT line you may have, so you might want to consider using ALL for other entries.
Test it!
Do a test commit. It should start the build and print out something like the following:
Trigging build of ProjectName DamageControl on http://localhost:4712/private/xmlrpc Monitor build results at: http://localhost:4712/public/project?project_name=#{project_name}
Installing DamageControl trigger into Subversion
TODO
Basically follow something like the above procedure. But instead of checking out CVSROOT put the invocation to requestbuild(.cmd) into <subversion repo root>/hooks/post-commit(.bat) on the server where Subversion was installed.
