How to pass the same parameter to the part of snapshot dependencies only
Hi!
Consider this build chain: 'Create Package' builds a package. 'Deploy service' and 'Deploy database' both depends on 'Create Package'. 'Deploy all' is a composite build that depends on 'Deploy service' and 'Deploy database'.
Both 'Deploy service' and 'Deploy database' requires parameter 'Environment' that represents the environment on which we want to deploy our package.
The question is: how to pass the same 'Environment' parameter to the 'Deploy service' and 'Deploy database' dependencies from the 'Deploy all' build configuration?
I know about 'reverse.dep.<proj>.><param> ' approach, but the issue with that is that we cannot pass the same value to the both 'Deploy service' and 'Deploy database' builds, we must declare two parameters (reverse.dep.DeployService.Environment and reverse.dep.DeployDatabase.Environment) and manually fill it with the same value when we run 'Deploy all'.
Another approach is to use reverse.dep.*.<param>, but the issue is that 'Environment' parameter comes not only to the 'Deploy service' and 'Deploy database' builds, but even to the 'Create package' build, and it triggers rebuild of the whole build chain for each possible parameter value.
Is there another way to pass the single parameter value to the part of dependencies only?
Please sign in to leave a comment.
Hi Pavel,
I'm afraid that either one at a time, or all at once is the only option, there is no way to send the parameter only to a few dependencies using only one parameter.