Quantcast
Channel: TeamCity : Powerful CI/CD for DevOps-centric teams | The JetBrains Blog
Viewing all articles
Browse latest Browse all 916

Comment on Configuration as Code, Part 2: Working with Kotlin Scripts by Bo Sørensen

$
0
0

Have recently run into an issue about using id in portable DSL. In order to control the id used for the REST API, instead of using id(“identifier”), we are using id = AbsoluteId(“identifier”) which allows for fine-grained control of the id for subprojects. A subproject named “subproject” belonging to parent project “parent”, would then be defined using id = AbsoluteId(“parent_subproject”).
Using RelativeId would generate a name like “RootProjectId_parent_subproject”, which goes against keeping the id’s short and to the point.

However UI patches make use of RelativeId, which leads to an error as the root id “RootProjectId_” will be prepended to the referenced id.
The odd thing is that it is only in IntelliJ we get the errors, TeamCity is able to apply patches without errors. On further inspection this is due to TeamCity generating the Root project using the name “_Root” and not “RootProjectId”.


Viewing all articles
Browse latest Browse all 916

Trending Articles