How to integrate Plastic SCM with TeamCity CI server
The Plastic SCM Team City plugin extends the capabilities of the TeamCity server, enabling it to manage continuous integration operations using source data that is under Plastic SCM control.
To install the Plastic SCM Team City plugin:
Download the Plastic SCM plugin for TeamCity and copy the com.codicesoftware.plugins.teamcity.PlasticSCM.zip file into your TeamCity plugins directory: /.BuildServer/plugins.
is your operating system home directory, a subdirectory of Users (Windows 7, Windows Vista), or Documents and Settings (Windows XP), or $HOME (Unix-based systems).
Note: It is recommended to restart the Team City server so that it automatically unzips and loads the plugin.
(Windows systems only) The plugin performs Plastic SCM commands with the user identity of the TeamCity Build Agent Service. By default, this identity is the SYSTEM user account. We recommend changing this to an actual user account:
Go to Control Panel > Administrative Tools > Services.
Right-click TeamCity Build Agent Service and select Properties.
Go to the Log On tab and specify another user (who must have Administrator rights).
Restart the TeamCity Server service, so that it recognizes the Plastic SCM plugin.
To create a Plastic SCM build configuration in TeamCity, you must first configure a VCS root:
Open the TeamCity web application and select your project.
Select "Create build configuration" (or edit an existing build configuration):
Fill in the general settings for the build configuration.
Select "VCS Settings":
Select "Create and attach new VCS root":
In the "New VCS Root" dialog, set the Type of VCS to Plastic SCM. Then fill in these fields:
VCS root name - Any descriptive name, such as "Plastic SCM root".
Plastic command line executable - Set to "cm" or to the full pathname of the cm program.
Selector - In this field, copy the selector of the Plastic SCM workspace in which builds are to take place.
Workspace directory - The full pathname of the Plastic SCM workspace in which builds are to take place.
Click "Test Connection" to make sure that TeamCity can perform Plastic SCM client commands.
(Optional) Back in the "Version Control Settings" dialog, enter a VCS Labeling specification:
Now, you can run a build to start working with Plastic SCM from the Team City environment.
Note: When installing Team City on Windows systems, it normally uses the SYSTEM user account. We recommend changing the user that executes the TeamCity application. To do that, go to Control Panel, Administrative Tools, Services, right click on the TeamCity services, go to the Log on tab and select another Administrator user. The user that runs the Agent will be the user that runs Plastic SCM. We do not recommend running applications with the SYSTEM user account.