Subversion Integration Setup

The following instructions show how to set up a trigger script in Subversion which will notify FogBugz whenever a check-in occurs that is related to a particular bug.

Before proceeding, please locate the following files which you will use in a moment.  If you are a trial user, you can download the trial versions of these scripts by logging into FogBugz and clicking "Demo Source Control Integration" on the main menu.  After downloading, trial users can skip directly to step 2 on this page.

You can use either Perl:
FogBugz\Accessories\SourceControl\Subversion\logBugDataSVN.pl

Or VBScript:
FogBugz\Accessories\SourceControl\Subversion\logBugDataSVN.vbs

Additionally please locate the SubVersion-to-FogBugz post-commit hook file:
FogBugz\Accessories\SourceControl\Subversion\post-commit.bat

  1. Make the following changes at the top of the logBugDataSVN file to suit your environment:


     
    • Set the value of BUGZ_SERVER to the DNS name of the web server running FogBugz, for example " www.example.com".
    • Set the value of BUGZ_URL to the virtual path to your FogBugz installation. For many sites this is "/FogBugz/". Just take the full URL of your FogBugz installation - "http://www.example.com/bugz/" and remove the "http://www.example.com" part. (If FogBugz is running at the root, use "/").
    • If you are using the PHP version of FogBugz, change CVSSUBMIT from "cvsSubmit.asp" to "cvsSubmit.php".
    • If your SVN repository is on Unix, make sure to set execute permissions on your logBugDataSVN file.

  2. Put both post-commit.bat (or post-commit for Unix/Mac users) and your logBugDataSVN file into the Hooks directory in your Subversion repository.  If your SVN repository is on Unix, make sure to set execute permissions on your post-commit file.