![]() ![]() |
CVS Integration SetupThe following instructions show how to set up a trigger script in CVS 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.
1. Check out the CVSROOT directory. 2. Create a file named bugz.txt. Type "BUGZID:", then hit enter, then hit enter again. You can see, highlighted below, that the cursor is two lines below the text. You want those carriage returns. 3. Add this to the repository. 4. Copy in logBugData.pl that you located earlier, and add it to the repository. Alternately you can use the .vbs version of the file if you don't want to use Perl. 5. (This step is not required for trial users.) Edit the settings at the top of logBugData.pl shown below (they look basically the same in the .vbs version):
6. Edit the file rcsinfo, adding one line at the end as shown below. Change the file path shown here so that it points to the bugz.txt file in your CVS repository on your CVS server (that you created in Step 2 but haven't checked in yet).
7. Edit the file loginfo, adding one line at the end as shown below. Again, change the file path shown here to point to the logBugData.pl file in your CVS repository on your CVS server.
8. Edit the file checkoutlist, adding two lines at the end as shown in these examples:
9. Check in your changes.
10. If your CVS repository is on Unix make sure to set execute permissions on the logBugData.pl file. 11. Here's a screenshot of a check-in that successfully connected to FogBugz (this screenshot is of CVSNT on Windows, utilizing logBugData.vbs, that's why you see "Windows Script Host" poking its face in): Notice that it says "Adding bug info for Bug ID #1"! This means that when I view bug number 1 in FogBugz I see this now: NOTE: If this is NOT your joyous experience right now, years of technical support have shown us that it's 99.9% percent likely that you diverged ever, ever, ever so slightly from the steps above. Maybe you put .pl instead of .vbs somewhere. Maybe you put a / instead of a \ somewhere. Maybe the path that you thought lead to your bugz.txt file does not actually lead to that file. Please go over all the above steps pretending you are CVS trying to execute everything step by step. We find that lots of patience usually does the trick, especially when followed by lots of cookies afterwards. |



![[Image]](HelpPics/cvs1.gif)
![[Image]](HelpPics/cvs-bugz-txt.png)
![[Image]](HelpPics/cvs3.gif)
![[Image]](HelpPics/cvs-copy-log-data.png)

![[Image]](HelpPics/cvs6.gif)
![[Image]](HelpPics/cvs7_2.gif)
![[Image]](HelpPics/cvs8.gif)
![[Image]](HelpPics/cvs9.gif)

