Dependencies and Typed Parameters
Hello,
I have a project with multiple build configurations in it that I want to have the user input a parameter at run. The layout looks like this:
1. Trigger
2. ConfigA
3. ConfigB
The Trigger Job has dependencies on ConfigA and ConfigB.
In both ConfigA and ConfigB I have a parameter called RC that is set to "rc=%RCNUM%"
I have created a Typed Parameter of called RCNUM at the project level (Main Project). This is configured with the following:
text display='prompt' description='Next RC' label='RCNUM' validationMode='not_empty'
When I run the Trigger configuration, I am prompted to enter the RCNUM and that shows up in the parameters of the Trigger job, but it does not get populated to the dependencies. In all three configurations there is a RCNUM is listed as <empty> and has a name of 'RCNUM (inherited from Project "Main Project")'.
Is there a way to start the trigger job and then have the RCNUM populated from the prompt to the dependencies?
Thanks,
Ben
Please sign in to leave a comment.
Hi Benjamin,
Parameters aren't automatically inherited through a dependency chain. If you want to use a parameter from a dependency, you need to refer to it as %dep.<build_id>.RCNUM%. More information to parameters from dependencies here: https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters#PredefinedBuildParameters-DependenciesProperties