Passing Variables dynamically while using Finish Build Triggers


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.


Comment actions Permalink

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` (

Comment actions Permalink

Hi Dmitry Treskunov,

This is perfect! Thanks a lot for your help.


Please sign in to leave a comment.