E
E
EmachinesDIMA2022-04-18 15:30:34
teamcity
EmachinesDIMA, 2022-04-18 15:30:34

How is the automatic generation of description objects in teamcity in xml format? How to make changes to files?

Hello!

We use Kotlin DSL to describe build configuration.

We are experiencing certain problems with importing the described configuration from VCS, and also experiencing problems with converting .kt files to the corresponding objects in .xml format.

Explanation. All the given examples are executed within the framework of one problem and may have dependencies one from the other, execute sequentially.

Example 1.

I described my infrastructure in Kotlin DSL format in .kt files. I did not think about any .xml files, I did not create them. I save my description in VCS (github, bitbucket, other vcs). I connect and upload content in teamcity: go to Versioned Settings and turn on synchronization. I select "xml" parameters (not kotlin), uncheck "Allow editing project settings via UI"

The problem is that xml files are not always generated that correspond to each of my descriptions in the .kt format.

Example 2:

I made changes to the contents of my files. Changes are not always updated in xml files. You have to manually edit the xml files to the current values.

Example 3.

I decide to disconnect and reconnect synchronization. I choose "overwrite configuration from VCS". I see a message about the successful application of the changes.
However. The structure remains the same, and in VCS I see only pom.xml and project-config.xml. All my work has been removed. I had to restore my files from the previous commit.

In this regard, the question is: how is the automatic generation of description objects in teamcity in xml format? How to make changes to files? Do I need to make manual changes to the xml files or should the values ​​be automatically updated according to the description of the .kt files?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question