Portable Kotlin: Can I add a new build configuration to a project directly through Kotlin?
I have a project that has several build configurations and the project stores portable Kotlin DSL in the product's repository. Previously, when I've created new build configurations I would always do it through the UI, set everything up, and then go through the painful process of merging the generated patch files into the root settings.kts.
My question is: can I create a build configuration from scratch directly through Kotlin without using the TeamCity UI (i.e. can I edit settings.kts to add a new build configuration, push it to my product's repository, and have TeamCity detect that and start showing the new build configuration)? Or must I at least create the build configuration from the UI and then edit its settings in the Kotlin?
Please sign in to leave a comment.
Yes, in fact initially UI editing was locked after versioned settings were enabled initially, with no option to add configurations in the UI, so the initial use case for the DSL already included creating build configurations from scratch.