Child pages
  • Indore 2017.2 EAP3 (build 49972) Release Notes

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When settings are edited in the UI, TeamCity generates a patch script in a dedicated package ‘<project external id>.patches.(buildTypes|templates|vcsRoots|projects)’, script name is <uuid of the entity>.kts. The patch script is executed after regular dsl scripts and applies the UI changes to the generated settings if the settings are in the expected state. For example, if you change the build configuration name, then the patch scripts checks that the name produced by the regular script isn’t changed and then updates the name. Once the patch script is committed to the settings repository, you can apply its changes to your settings. After that, the patch script should be removed.

Code Block
titleExample of the patch changing name of a build configuration
languagejava
/*
This patch script was generated by TeamCity on settings change in UI.
To apply it, change the buildType with uuid '5dc8e147-11dc-4cb6-83aa-cfdb2595797d'
accordingly and delete the patch script.
*/
changeBuildType("5dc8e147-11dc-4cb6-83aa-cfdb2595797d") {
    check(name == "Old Name") {
        "Unexpected name: '$name'"
    }
    name = "New Name"
}

Limitations

Some of the UI actions will still be disabled for projects in Kotlin:

...