Pass environment parameter to dependency build in chain

I have a build chain with two projects: A is the root project, B depends on it. B has two dependencies configured: an artifact and a snapshot dependency. One build configuration for B has an environment variable (parameter) set. However, I also need this parameter set for the root project A.

Is there any way in TeamCity 9 to pass a build configuration parameter from a project to its dependency (in the same build chain)?

5 comments
Comment actions Permalink

Hi,

I'm a little bit confused by terminology, because there are no dependencies between projects in TeamCity.
However it is possible to pass parameters from the builds the current build depends on. Also since TeamCity 9.0, you can override the dependencies parameters by redefining them in the dependent build.

1
Comment actions Permalink

So I know that one can pass parameters in the same direction as the build chain goes.
But my question is whether there is also a way to pass paramters back vice vers?

0
Comment actions Permalink

As I wrote you can push the parameter value up to the chain using reverse.dep.<btID>.<property name>. Please see the related doc section.
Won't this satisfy your request?

0
Comment actions Permalink

Thanks, that is what I am looking for.

0
Comment actions Permalink

Looking for the same question.

0

Please sign in to leave a comment.