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

Predefined Build Parameters

Last modified: 30 September 2021

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 are generated by TeamCity on the server side in the scope of a particular build. An example of such parameter is a build number.

  • Agent properties are provided by an agent on connection to the server. They 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 are 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 a 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 a build. See Configuration Parameters below for the list of such parameters.