On this page you can generate a configuration file for a tool which allows to run personal builds from the command line.
To operate, this tool requires a mapping configuration file which maps local paths in your project to VCS settings in Teamcity.
Create mapping configuration file
Add mapping for
The changes made in the table are automatically reflected in the resulting configuration file contents, below. To add records to the table, use the build configuration selector above.
Each line in the configuration file contains two parts:
Local path in your project, which can be either absolute path on your hard drive or it can be relative to the project root.
VCS path. This path points to a location under VCS root and is formatted according to TeamCity formatting rules.
It usually comprises identifier of the VCS repository and a path within this repository.
Steps to run personal build from command line:
Install Java JRE 1.5.+ on your machine, make sure java is available in the command line
Copy contents of the configuration file (above) to ${mappingsFile} in your root project directory (you may decide to add this file under the version control)
Login to TeamCity with command line runner tool:
${loginLine}
Run remote build for contents of a directory with selected build configuration:
${remoteRunLine}
To learn more about tool options, please see the documentation.