TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Predefined Build Parameters

Last modified: 28 August 2020

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 the .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 passed to the build.

There is also a special type of server-side build parameters that can be referenced by other parameters, but that are not passed to the build. See Configuration Parameters below for the list of such parameters.