Initial Setup

An installed ClearCase client on the TeamCity server is required to make TeamCity ClearCase integration work. You also need to create a ClearCase view on the TeamCity server machine (regardless of whether you plan to use the server-side or agent-side checkout). This view will be used for collecting changes in ClearCase VCS roots and for checkout in case of the server-side checkout mode. In case of the agent-side checkout mode, the config spec of this view will be also used to automatically create views on agents.

If you plan to use the agent-side checkout mode, make sure the ClearCase client (cleartool) is also installed on the agents and is properly configured, i.e. the tool must be in system paths and have access to the ClearCase Registry.

ClearCase Settings

Common VCS Root properties are described here. The section below contains description of the fields and options specific to the ClearCase Version Control System.



ClearCase view path

A local path on the TeamCity server machine to the ClearCase view created during the initial setup.The snapshot view is preferred as there is no benefit in using the dynamic view with TeamCity. Also, dynamic views are not supported for the agent-side checkout (TW-21545).

Do not use the view you are currently working with. TeamCity calls the update procedure before checking for changes and building patch, and thus it might lead to problems with checking in changes.

Relative path within the view

the path relative to the "ClearCase view path" that limits the sources to watch and checkout for the build.


Branches are used in the "-branch" parameter for the "lshistory" command to significantly improve its performance.
You can either let TeamCity detect the needed branches automatically (via the view's config spec) or specify your own list of needed branches. Press the Detect now button to see the branches automatically detected by TeamCity.
You can also choose the "custom" option and leave the text field blank - then the "-branch" parameter will not be used for the "lshistory" command at all.
If you specify or TeamCity detects several branches, then "lshistory" will be called for every branch and all results will be merged.
(info)"lshistory" options can be customized, see TW-12390

Use ClearCase

Use the drop-down menu to select either UCM or BASE.

Global labeling

Check this option if you want to use global labels

Global labels VOB

Pathname of the VOB tag (whether or not the VOB is mounted) or of any file system object within the VOB (if the VOB is mounted)

Make sure that the user that runs the TeamCity server process is also a ClearCase view owner.

See also:

Administrator's Guide: VCS Checkout Mode