Passing Variables dynamically while using Finish Build Triggers Follow
Answered
Hi Team,
Would like to know if there is a possibility to pass value of a TeamCity parameter (Example: Deploy destination list, i.e., environments to deploy to) of Project A to Project B, while using the Finish Build Trigger to trigger Project B after Project A.
So, in short, Project B should deploy to same environments as Project A, when triggered.
NOTE: The finish build trigger uses the default branch of project A.
Thanks!
Please sign in to leave a comment.
Hi, if you add a snapshot dependency from B to A then in B you'll be able to get parameters from A using `dep.A.param_name` (https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html#Dependencies+Properties)
Hi Dmitry Treskunov,
This is perfect! Thanks a lot for your help.