jetbrains.buildServer.configs.kotlin.v2018_1 / Project / <init>

<init>

Project(init: Project.() -> Unit)

Creates a project and initializes it with the specified init block

Parameters

init - initialization block

See Also

Project

Project()

Represents TeamCity project.

The id and name are mandatory properties for a valid project (id can be omitted if it matches the class name).

The parentId property defines a place for this project in a project hierarchy, it should be empty for the Root project on the server, and non-empty for other projects.

To appear in UI project should be either registered via the project call in the settings.kts or added as a subproject to a registered project via the subProject() method.

BuildTypes, templates, and vcsRoots can be registered in the project using the buildType, template, and vcsRoot methods accordingly. BuildTypes and subprojects order can be specified via the buildTypesOrder and subProjectsOrder methods.

Project parameters are defined inside the params block.

The cleanup tab in the project admin UI contains clean-up rules for the project itself, its subprojects, and build configurations. In DSL the cleanup block in the project defines the clean-up rules for the project itself, subprojects and buildTypes can define their own clean-up rules or inherit them from the parent project(default).

Other tabs in the project admin UI are either not stored in VCS (e.g. SSH keys), or are defined as project features in the features block.

See Also

BuildType

Template

VcsRoot