In TeamCity 9, I have two build configurations: A, B, which depends on A (snapshot dependency). Sometimes A starts alone, sometimes in a chain with B. I want to change build.numberfrom A to (for example) 0.<build.counter of B>when A is running B.
According to the docs :
Starting with TeamCity 9.0, it is possible to override dependent parameters by overriding them in a dependent assembly. For example, assembly configuration A depends on B and B depends on C; A has the ability to change parameters in any of its dependencies using the following format:
reverse.dep.<btID>.<property name>
Ok, I created a configuration parameter in B: reverse.dep.A.build.number= 0.%build.counter%. Therefore, when I run the assembly chain, I assume that the assembly number. A will be changed to 0.123(for example, build.counter from B equal to 123), but instead the string 0.%build.counter% was passed to A and A uses its own property build.counter.
How to pass exactly TeamCity parameter values?
source
share