I'm trying to understand about variables in teamcity. My understanding is there are 3 kinds of variables(System,Env,Config)
But in jetbrains documentation I saw more variables. Looks like agent variables and server side variables are separate.
But in TeamCity, parameters section when I select "kind" config or system or env, all kinds of values are populated (I Expected only relevant values should come)
Not really clear about when we have to use which variable. Is TeamCity having 6 variables for parameters(Serverside:env,sys,config and Agent:env,sys,config).
Edit page. Last modified: 27 October 2022. Build parameters are name-value pairs, defined by a user or provided by TeamCity, which can be used in a build. They help flexibly share settings and pass them to build steps.
Last modified: 26 October 2022. An ID is an identifier given to TeamCity entities (projects, build configurations, templates, VCS roots, and so on). Each entity has two identifiers: external ID. Universally Unique ID, or UUID.
There are three types of parameters, they differ in a way they might be used in a build:
env
parameters are passed to the build process (spawned by TeamCity) as environment variablesys
parameters set tool-specific variables (and therefore passed to the build scripts of the supported runners)config
parameters are meant to be used for build configuration customizationThere're predefined parameters exposing server build properties, agent properties, agent build properties etc. These parameters are passed to the build as system
parameters, some of them are also copied to the environment variables.
In addition, parameters might be defined
buildAgent.properties
file on the agentMore details might be found in the docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With