How to get env variable from parent project in dependecy
How to get env variable from parent project in depended project?
For example: we have 2 project A and B. Project A has variable env.testvar=asdf. Also the project A has depended project B. When I trigger Project A first will be started Project B. I want to get variable env.testvar from parent project A in Project B
How can I do this?
Please sign in to leave a comment.
Hello,
Dependencies Properties is what you are looking for. More details in our documentation.
Nadia, thank you for reply. But it's not the same I want.
dep.<btID>.<property name> - I can use only in parent project (Project A)
reverse.dep.<btID>.<property name> - I can only redefine variable in Project A.
But I want to get variable in Project B from Project A.
For example I add a new build step in Project B:
echo %dep.ProjectA.env.test%
Sorry, I haven't understood it correctly from the beginning.
The parameter you are looking for is currently unsupported in TeamCity. Please, create a feature request in our issue tracker and we'll consider implementing it in future releases.