Search code examples
teamcitybuildconfiguration

teamcity build system or config variable name populated from dynamically generated reference


All, any clues on how to do the following in the Build Parameter panel in teamcity 8.0.5?

property name : system.project_fullName
property value : %dep.$mybuildID$.system.project_fullName%

with $mybuildID$ being a property defined in the same Panel

property name : system.mybuildID
property value : BuildX

The reason I need to do this is that I have a dependency to create between multiple projects for two-step-style build projects. I don't want to manually edit each property I am trying to import from my BuildX project - I only want to have one variable to edit in each build configuration. How can I do that?


Solution

  • It is not possible in TeamCity to dynamically resolve parameter inside another parameter value. Won't it be an option to create a project with all needed dependencies configured and then copy this project. In this case build configurations and dependencies between them will be copied respectively and you do not have to configure anything manually.