How to use parameters in TeamCity meta-runner generated from subproject?

TeamCity has set up top-level project A.

Project A has one assembly configuration A1 .

Project Bed and - this sub- A .

Project B has one build configuration called B1 .

In this build configuration, I defined two parameters:

  • env.param1 = "ABCDE"
  • env.param2 =% param1%

Then, from the build configuration B ( B1 ) I extract meta-runner and attach it to the B parent project A .

But when I try to use the meta-runner in the configuration of assembly A ( A1 ), this assembly will not start; he complains that env.param1 is undefined.

When I look in the definition of a build step ( A1 ) or a meta-runner, I can directly see what's inside env.param1 . But on the A1 project configuration page A , he lists env.param1 as "".

I thought that the meta-runner more or less encapsulates everything that is defined in it, so it can be used wherever you attach it. From docs :

, - , ; xml , , xml . TeamCity - -.

[]

"" TeamCity .

?

+4

Source: https://habr.com/ru/post/1532943/


All Articles