<%@ page import="jetbrains.buildServer.web.util.WebUtil" %> <%@ page import="jetbrains.buildServer.web.util.SessionUser" %> <%@ page contentType="text/html;charset=UTF-8" language="java" session="true" errorPage="/runtimeError.jsp" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%@ taglib prefix="bs" tagdir="/WEB-INF/tags" %><%@ taglib prefix="l" tagdir="/WEB-INF/tags/layout" %><%@ taglib prefix="forms" tagdir="/WEB-INF/tags/forms" %><%@ taglib prefix="authz" tagdir="/WEB-INF/tags/authz" %><%@ taglib prefix="afn" uri="/WEB-INF/functions/authz" %><%@ taglib prefix="graph" tagdir="/WEB-INF/tags/graph" %> java -jar c:\tcc.jar login --host <%= WebUtil.getRootUrl(request)%> --user <%= SessionUser.getUser(request).getUsername()%> java -jar c:\tcc.jar run --host <%= WebUtil.getRootUrl(request)%> -m "remote run message" -c btXXX <list of modified files>

On this page you can generate a configuration file for a tool which allows to run personal builds from command line.

To operate, this tool requires a configuration file which maps local paths in your project to VCS settings in Teamcity.

Create configuration file

Add configuration for   
The changes made in the table are automatically reflected in the resulting configuration file contents, below.
Local Path VCS Path VCS Source Details Remove
<%--Update from table--%>

Resulting configuration file contents:

Each line in the configuration file contains two parts:

  1. Local path in your project, which can be either absolute path on your hard drive or it can be relative to the project root.
  2. 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:

  1. Install Java JRE 1.5.+ on your machine, make sure java is available in the command line
  2. Download the tool (tcc.jar) to your hard drive, for instance to c:\tcc.jar
  3. 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)
  4. Login to TeamCity with command line runner tool:
    ${loginLine}
  5. Run remote build for contents of a directory with selected build configuration:
    ${remoteRunLine}

    To learn more about the tool options, please see documentation