Passing Variables dynamically while using Finish Build Triggers

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!

2 comments
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` (https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html#Dependencies+Properties)

1
Comment actions Permalink

Hi Dmitry Treskunov,

This is perfect! Thanks a lot for your help.

0

Please sign in to leave a comment.