Welcome to CB2SVN, this guide quickly runs through a typical installation. For more detailed instructions, please refer to the other documentation included with this product. For a Linux installation, simply replace all references to c:\Program Files with /opt (or /usr/local if you prefer) and use a terminal window where it refers to 'DOS' below.

Prerequisites

Before you start make sure you have the following setup and available:

Request a License

Unpack the zip file on the machine that you are planning to use as the CB2SVN Server and run the Clearvision\tools\get_license_info program in a DOS command window. Send the information requested to sales@clearvision-cm.com to apply for a license.

Linux prerequisites

The client executable uses GTK+ on linux, so you might need to install this, for example on CentOS 5 or RHEL 5:

yum install gtk+

(If you see an error with libgmodule.so missing while trying to run the client, then gtk+ is not installed on your system)

Setup CodeBeamer

Create a Report

Create a report to get the list of tracker items that a typical CB2SVN user would be interested in. For example, all outstanding bugs or features for the 'Current User'. Make sure that this report is usable by everyone who will use CB2SVN. Write down the id of the report: a number like '1010'. You can find it at the end of the URL after creating a new report, or when you view a report (look in your browser's location bar and scroll right as far as you can go).

Install & Configure CB2SVN Server

On your CB2SVN Server machine:

[CB]
report_id=10010
cb_server=http://issues.mycompany.com:8080

[License]
company_name=Your Company Plc
licence_email=admin@yourcompany.com
expiry_date=2008-12-31
users=999
license_key=PLEASE_ADD_YOUR_LICENCE_key_HERE
license_certificate=PLEASE_ADD_YOUR_LICENCE_certificate_HERE

[Server]
server_ip=192.168.1.2
server_port=54325

cd c:\Program Files\Clearvision\cb2svn\server
cb2svn_server.exe

Install & Configure CB2SVN Clients

On each of the machines that CB2SVN users will be working:

[CB]
cb_uid=joe_bloggs
cb_password=my_secret_password

[Server]
server_ip=192.168.1.2
server_port=54325

[Options]
svn_uid=joe_bloggs

cd c:\Program Files\Clearvision\cb2svn\client
cb2svn_client.exe

Install & Configure Subversion Hooks

On your Subversion Server machine:

[Server]
server_ip=192.168.1.2
server_port=54325

Test it!

Now that you have:

you are ready to test the system by committing a change to Subversion. On the machine that is running the CB2SVN Client:

svn commit myfile.txt --username joe_bloggs

You should see the CB2SVN client GUI pop-up to allow you to select the list of issues that were resolved by this change. Select one and select OK to close the pop-up window.

Verify Results

To check that CB2SVN worked fully, go to the SCM Repository tab for your project in CodeBeamer, find your commit in the table below and check that the tracker item you selected appears in the Tasks column.

Then, check the link back to CodeBeamer in Subversion by looking at the 'clearvision:change_id' revprop with this command:

svn proplist -rHEAD --verbose --revprop .


Copyright (c) 2009 Clearvision CM All Rights Reserved
Registered in England No. 5643578 VAT Registration No. UK881364801
Registered Address Laurel Farm, Winters Hill, Durley Southampton, SO32 2AH

http://www.clearvision-cm.com