Search code examples
teamcityteamcity-9.0

How/Where to set reverse dependency parameter (reverse.dep) in TeamCity?


I have a TeamCity build configuration A and B, where B is dependent on A. I need to pass a parameter from B to A when B is triggered.

This is related to question: Override dependencies properties by parameters value in TeamCity 9

and the teamcity documentation here

I need to find WHERE/HOW to use this reverse.dep to set the parameter in the dependent build? In the Project Configuration Parameters section, I can add Configuration/Environment/build parameters, but they take a Name/Value pair. So, pardon my ignorance here, but am not able to make out where to specify this reverse logic.

Thanks


Solution

  • Found it!

    We just need to add a new Configuration Parameter in B with name as reverse.dep.<btId>.paramName and its value as the intended value that needs to be passed.

    Imp: As noted in the TeamCity documentation -

    As the parameter's values should be known at that stage, they can only be defined either as build configuration parameters or in the custom build dialog.