Child pages
  • Indore 2017.2 RC (build 50444) Release Notes

Versions Compared

Key

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

...

Table of Contents

DSL Changes

Updating default project template

Since 2017.2 EAP3 TeamCity supports default templates in projects. This setting was stored in a project feature of type "DefaultTemplate" in EAP3 and EAP4, but since 2017.2 RC the project configuration schema was changed to accommodate for default templates.
To manually convert a DSL project configuration that employs the default template, you will have to delete a corresponding project feature and replace it with a defaultTemplate property assignment as follows:

2017.2 EAP3/4 DSL project configuration with a default template configured:

Code Block
object Project : Project({
    uuid = "2b241ffb-9019-4e60-9a3a-d5475ab1f312"
    extId = "ExampleProject"
    parentId = "_Root"
    name = "Example Project"
    ...
    features {
        ...
        feature {
            id = "PROJECT_EXT_4"
            type = "DefaultTemplate"
            param("template", "ExampleProject_MyDefaultTemplate")
        }
        ...
    }
    ...
})

2017.2 DSL project configuration with a default template configured:

Code Block
object Project : Project({
    uuid = "2b241ffb-9019-4e60-9a3a-d5475ab1f312"
    extId = "ExampleProject"
    parentId = "_Root"
    name = "Example Project"
    defaultTemplate = "ExampleProject_MyDefaultTemplate" 
    ...
    features {
        ...
    }
	...
})

...

Excerpt Include
TCD10:Upgrading DSL
TCD10:Upgrading DSL
nopaneltrue
Excerpt Include
TCD10: Upgrading DSL
TCD10: Upgrading DSL


Other improvements