How to pass parameters from composite build to dependent builds?
How to pass parameters from composite build to dependent builds?
I have projet "Game". This project have 2 sub-project. "Deploy" and "Muilty-Deploy".
So, I created composite build step(in Muilty-Deploy) and added 3 builds from Deploy into dependencies.
Game:
- Deploy:
-
- Deploy Platform1 (Regular)
- Deploy Platform2 (Regular)
- Deploy Platform3 (Regular)
- Muilty-Deploy:
-
- Deploy All Platforms (composite)
In all regular builds I have parameter DistanationFolder = D:\Platform\BuildName. This parameter is declared in the root projet "Game". So, it is the same parameter for both sub-projects.
Now, I override DistanationFolder in "Deploy All Platforms" (composite build) to D:\AllPlatforms\Platform\BuildName.
But, when I run "Deploy All Platforms" it start all Deploys with not overrided parameter.
Question. How to do this?
Please sign in to leave a comment.
You have the option to override parameters from the dependencies before they start as indicated here: https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters#PredefinedBuildParameters-OverridingDependenciesProperties
Just remember that this override must happen either in the parameters directly or upon triggering, they cannot be modified dynamically after the builds are triggered.