Creating TeamCIty project by importing Kotlin DSL

Hi JetBrains Team,

I am trying to create TeamCity project/build configuration using REST API. I am curious if it's possible to create project by importing Kotlin DSL script?

My goal is to create project/build configurations dynamically by existed Kotlin DSL scripts. How can I achieve it? Thanks!

0
1 comment

Hi,

 

By default, you cannot create a Kotlin DSL project out of nowhere if its parent project is not already set up to use versioned settings. Once you set up a project to use versioned settings in kotlin format, you can create subprojects for it using the DSL by simply creating a new project item.

 

The solution to your issue would be to store the root (or at least the parent) project in versioned settings in kotlin format, then simply add projects as you see fit to the code.

0

Please sign in to leave a comment.