How to identify an overridden build parameter in the DSL file of a build project ?
Answered
From the DSL file of my build project, i would like to identify parameters that comes from inheritance and other parameters that are overridden.
Any tip ?
My problem is the following:
I have a template for the build solution that uses :
toolsVersion = MSBuildStep.MSBuildToolsVersion.V15_0
version = MSBuildStep.MSBuildVersion.V15_0
I have two build projects that inherit from this template but contain different values:
Build 1 contains:
toolsVersion = MSBuildStep.MSBuildToolsVersion.V14_0
version = MSBuildStep.MSBuildVersion.V14_0

and build 2 contains:
toolsVersion = MSBuildStep.MSBuildToolsVersion.V15_0
version = MSBuildStep.MSBuildVersion.V15_0

I can not identify (even in DSL file) if this value comes from the template or from a user overridden.
Any idea how i can discriminate them ?
It could be nice to have a Tag/Flag in the DSL file to identify inherit parameters from the others.
I use Team City Version 2019.1.
Please sign in to leave a comment.
Hi,
what are you trying to achieve with this? If the template is in the same script, you can always check if the value is equal to the template, but I'm not sure what you mean with "or from a user overriden".