Override parameter spec
We have a parent build configuration which contains parameters need by the build steps. One of the parameter is multi-select option with a possible list of values. In one of the inherited build configurations we need to override the list of possible values but the spec button for the parameter is disabled. Is it possible to override parameter defined in the parent configuration in inherited one?
Please sign in to leave a comment.
Hello,
Currently it is only possible to override values of parameters, not specs.
We have the related feature request: TW-3419 Override typed parameters, please watch and vote for it.
One of the possible (but may be not that elegant) workaround for this can be the following.
Create a number of variables in template (e.g. my.replaceable.selectvalue.var1..n - can be hidden or not) and make them to be values in spec:
Parameter select dialog will look like:

If this is somewhat usefull for you, you also may want to vote for related feature request:
TW-20252 Ability to use references to parameters in the description of a typed parameter.
You can try to dynamically update build parameters using service messages: https://confluence.jetbrains.com/display/TCD10/Build+Script+Interaction+with+TeamCity (see "Adding or Changing a Build Parameter" section).
For instance, the build template contains configuration parameter with type Select and name build.type. And you need to change build.type value in the build configuration associated with the build template. The solution is below.
Build step N:
Build step M:
But note that the changed build parameters will be available in the build steps following the modifying one. I.e. build.type value will be old at build step N, but the new value will be in build step M.