TeamCity
 
You are viewing the documentation for an earlier version of TeamCity. View this page in the current documentation

Predefined Build Parameters

TeamCity provides a number of build parameters which are ready to be used in the settings of a build configuration or in build scripts.

The predefined build parameters can originate from several scopes:

  • Server Build Properties – the parameters generated by TeamCity on the server-side in the scope of a particular build. An example of such property is a build number.

  • Agent Properties – the parameters provided by an agent on connection to the server. The parameters are not specific to any build and characterize the agent environment (for example, the path to .NET framework). These are mainly used in agent requirements.

  • Agent Build Properties – the parameters provided on the agent side in the scope of a particular build right before the build start. For example, a path to a file with a list of changed files.
    All these parameters are finally passed to the build.

There is also a special kind of server-side build parameters that can be used in references while defining other parameters, but which are not passed into the build. See Configuration Parameters below for the list of such properties.