351 lines
24 KiB
HTML
351 lines
24 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<meta charset="UTF-8">
|
|
<title>Project - </title>
|
|
<link rel="stylesheet" href="../../style.css">
|
|
</HEAD>
|
|
<BODY>
|
|
<a href="../index.html">jetbrains.buildServer.configs.kotlin.v2017_2</a> / <a href="./index.html">Project</a><br/>
|
|
<br/>
|
|
<h1>Project</h1>
|
|
<code><span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">Project</span> <span class="symbol">:</span> <a href="../-validatable/index.html"><span class="identifier">Validatable</span></a></code>
|
|
<p>Represents TeamCity <a href="https://www.jetbrains.com/help/teamcity/?Project">project</a>.</p>
|
|
<p>The <a href="uuid.html">uuid</a>, <a href="id.html">id</a>, and <a href="name.html">name</a> are mandatory properties for a valid project.</p>
|
|
<p>The <a href="parent-id.html">parentId</a> property defines a place for this project in a <a href="https://www.jetbrains.com/help/teamcity/?Project#Project-ProjectHierarchy">project hierarchy</a>,
|
|
it should be empty for the <a href="https://www.jetbrains.com/help/teamcity/?Project#Project-RootProject">Root project</a> on the server, and non-empty for other projects.</p>
|
|
<p>To appear in UI project should be either registered via the <a href="../project.html">project</a> call in the .teamcity/{Project id}/settings.kts
|
|
or added as a subproject to a registered project via the <a href="sub-project.html">subProject()</a> method.</p>
|
|
<p>BuildTypes, templates, and vcsRoots can be registered in the project using the
|
|
<a href="build-type.html">buildType</a>, <a href="template.html">template</a>, and <a href="vcs-root.html">vcsRoot</a> methods accordingly. BuildTypes and subprojects
|
|
order can be specified via the <a href="build-types-order.html">buildTypesOrder</a> and <a href="sub-projects-order.html">subProjectsOrder</a> methods.</p>
|
|
<p>Project parameters are defined inside the <a href="params.html">params</a> block.</p>
|
|
<p>The <a href="https://www.jetbrains.com/help/teamcity/?Clean-Up#Clean-Up-ProjectClean-upRules">cleanup tab</a>
|
|
in the project admin UI contains clean-up rules for the project itself, its subprojects, and build
|
|
configurations. In DSL the <a href="cleanup.html">cleanup</a> 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).</p>
|
|
<p>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 <a href="features.html">features</a> block.</p>
|
|
<pre><code class="lang-kotlin">//A minimal valid project:
|
|
|
|
val parentProjectId = "ParentProjectId"
|
|
Project({
|
|
uuid = "3dd8b78d-e71c-4065-8ce7-09d6d154c99a"
|
|
parentId = parentProjectId
|
|
id = "Integration Tests".toId(parentProjectId)
|
|
name = "Integration Tests"
|
|
})</code></pre><pre><code class="lang-kotlin">//A project with build configurations:
|
|
|
|
val parentProjectId = "ParentProjectId"
|
|
val projectId = "Integration Tests".toId(parentProjectId)
|
|
|
|
val linux = BuildType().apply {
|
|
uuid = "fe255589-595a-4c2d-8c3f-6aa616441f9c"
|
|
id = "Linux".toId(projectId)
|
|
name = "Linux"
|
|
}
|
|
|
|
val windows = BuildType().apply {
|
|
uuid = "a8678e4d-5621-4ea5-8a3a-c9c46704e990"
|
|
id = "Windows".toId(projectId)
|
|
name = "Windows"
|
|
}
|
|
|
|
Project({
|
|
uuid = "3dd8b78d-e71c-4065-8ce7-09d6d154c99a"
|
|
parentId = parentProjectId
|
|
id = projectId
|
|
name = "Tests"
|
|
|
|
buildType(linux)
|
|
buildType(windows)
|
|
})</code></pre><pre><code class="lang-kotlin">//A project with subprojects:
|
|
|
|
val parentProjectId = "ParentProjectId"
|
|
val projectId = "Tests".toId(parentProjectId)
|
|
|
|
val subProject = Project({
|
|
uuid = "3dd8b78d-e71c-4065-8ce7-09d6d154c99b"
|
|
parentId = projectId
|
|
id = "Slow Tests".toId(projectId)
|
|
name = "Slow Tests"
|
|
})
|
|
|
|
Project({
|
|
uuid = "3dd8b78d-e71c-4065-8ce7-09d6d154c99a"
|
|
parentId = parentProjectId
|
|
id = projectId
|
|
name = "Tests"
|
|
|
|
subProject(subProject)
|
|
|
|
//add a subproject without defining it as a variable
|
|
subProject {
|
|
uuid = "3dd8b78d-e71c-4065-8ce7-09d6d154c99c"
|
|
parentId = projectId
|
|
id = "Fast Tests".toId(projectId)
|
|
name = "Fast Tests"
|
|
}
|
|
})</code></pre>
|
|
<p><strong>See Also</strong><br/>
|
|
<p><a href="../-build-type/index.html">BuildType</a></p>
|
|
<p><a href="../-template/index.html">Template</a></p>
|
|
<p><a href="../-vcs-root/index.html">VcsRoot</a></p>
|
|
</p>
|
|
<h3>Constructors</h3>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p><a href="-init-.html"><init></a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="identifier">Project</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$<init>(kotlin.Function1((jetbrains.buildServer.configs.kotlin.v2017_2.Project, kotlin.Unit)))/init">init</span><span class="symbol">:</span> <a href="./index.html"><span class="identifier">Project</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span></code>
|
|
<p>Creates a project and initializes it with the specified init block</p>
|
|
<code><span class="identifier">Project</span><span class="symbol">(</span><span class="symbol">)</span></code>
|
|
<p>Represents TeamCity <a href="https://www.jetbrains.com/help/teamcity/?Project">project</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h3>Properties</h3>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p><a href="archived.html">archived</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">archived</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code>
|
|
<p>Whether this project is <a href="https://www.jetbrains.com/help/teamcity/?Archiving+Projects">archived</a></p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="build-types-order.html">buildTypesOrder</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">buildTypesOrder</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html"><span class="identifier">List</span></a><span class="symbol"><</span><a href="../-build-type/index.html"><span class="identifier">BuildType</span></a><span class="symbol">></span></code>
|
|
<p>Specifies <a href="../-build-type/index.html">buildTypes</a> <a href="https://www.jetbrains.com/help/teamcity/?Ordering+Projects+and+Build+Configurations">order</a></p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="build-types-order-ext-ids.html">buildTypesOrderExtIds</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><s><span class="identifier">buildTypesOrderExtIds</span></s><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html"><span class="identifier">List</span></a><span class="symbol"><</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">></span></code>
|
|
<p>Specifies buildTypes <a href="https://www.jetbrains.com/help/teamcity/?Ordering+Projects+and+Build+Configurations">order</a>.
|
|
Contains buildType ids. Can be also be filled by <a href="build-types-order.html">buildTypesOrder</a> property</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="build-types-order-ids.html">buildTypesOrderIds</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">buildTypesOrderIds</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html"><span class="identifier">List</span></a><span class="symbol"><</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">></span></code>
|
|
<p>Specifies buildTypes <a href="https://www.jetbrains.com/help/teamcity/?Ordering+Projects+and+Build+Configurations">order</a>.
|
|
Contains buildType ids. Can be also be filled by <a href="build-types-order.html">buildTypesOrder</a> property</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="default-template.html">defaultTemplate</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">defaultTemplate</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span></code>
|
|
<p>Id of default template. Null (by default) means no default template.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="description.html">description</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">description</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
|
|
<p>Project description</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="ext-id.html">extId</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><s><span class="identifier">extId</span></s><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
|
|
<p>Project id. It appears in web UI and is used in urls. Can be changed at
|
|
any time. But be aware that some settings use it, e.g. as a part of a
|
|
parameter reference. If you change the id, you should find all its
|
|
occurrences in the current project and change them too.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="id.html">id</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">id</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
|
|
<p>Project id. It appears in web UI and is used in urls. Can be changed at
|
|
any time. But be aware that some settings use it, e.g. as a part of a
|
|
parameter reference. If you change the id, you should find all its
|
|
occurrences in the current project and change them too.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="name.html">name</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">name</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
|
|
<p>Project name</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="parent-id.html">parentId</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">parentId</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
|
|
<p>Id of the parent project, defines a place for this project in a
|
|
<a href="https://www.jetbrains.com/help/teamcity/?Project#Project-ProjectHierarchy">project hierarchy</a>.
|
|
Can be omitted if the parent project is the <a href="https://www.jetbrains.com/help/teamcity/?Project#Project-RootProject">Root project</a>
|
|
or project is added to parent using <a href="sub-project.html">subProject</a> method.
|
|
Otherwise it is mandatory.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="sub-projects-order.html">subProjectsOrder</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">subProjectsOrder</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html"><span class="identifier">List</span></a><span class="symbol"><</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">></span></code>
|
|
<p>Specifies subprojects <a href="https://www.jetbrains.com/help/teamcity/?Ordering+Projects+and+Build+Configurations">order</a>,
|
|
contains subproject ids.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="uuid.html">uuid</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">var </span><span class="identifier">uuid</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
|
|
<p>Project uuid. It is mandatory, TeamCity uses it to identify entities.
|
|
If project's uuid changes, TeamCity considers it to be a new project.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h3>Functions</h3>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p><a href="build-type.html">buildType</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">fun </span><span class="identifier">buildType</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$buildType(jetbrains.buildServer.configs.kotlin.v2017_2.BuildType)/bt">bt</span><span class="symbol">:</span> <a href="../-build-type/index.html"><span class="identifier">BuildType</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Registers the specified buildType in this project</p>
|
|
<code><span class="keyword">fun </span><span class="identifier">buildType</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$buildType(kotlin.Function1((jetbrains.buildServer.configs.kotlin.v2017_2.BuildType, kotlin.Unit)))/init">init</span><span class="symbol">:</span> <a href="../-build-type/index.html"><span class="identifier">BuildType</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../-build-type/index.html"><span class="identifier">BuildType</span></a></code>
|
|
<p>Registers a new buildType initialized with the specified block in this project</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="cleanup.html">cleanup</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">fun </span><span class="identifier">cleanup</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$cleanup(kotlin.Function1((jetbrains.buildServer.configs.kotlin.v2017_2.Cleanup, kotlin.Unit)))/init">init</span><span class="symbol">:</span> <a href="../-cleanup/index.html"><span class="identifier">Cleanup</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Configures project <a href="https://www.jetbrains.com/help/teamcity/?Clean-Up">clean-up rules</a></p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="create.html">create</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">create</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="./index.html"><span class="identifier">Project</span></a></code>
|
|
<p>Creates an instance of this project via reflection using a no argument constructor,
|
|
used during copying. Throws an error if this class doesn't have a default constructor.
|
|
Subclasses can override it to create an instance without using a default constructor.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="features.html">features</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">fun </span><span class="identifier">features</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$features(kotlin.Function1((jetbrains.buildServer.configs.kotlin.v2017_2.ProjectFeatures, kotlin.Unit)))/init">init</span><span class="symbol">:</span> <a href="../-project-features/index.html"><span class="identifier">ProjectFeatures</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Allows to specify project features</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="params.html">params</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">fun </span><span class="identifier">params</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$params(kotlin.Function1((jetbrains.buildServer.configs.kotlin.v2017_2.ParametrizedWithType, kotlin.Unit)))/init">init</span><span class="symbol">:</span> <a href="../-parametrized-with-type/index.html"><span class="identifier">ParametrizedWithType</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Configures project parameters</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="sub-project.html">subProject</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">fun </span><span class="identifier">subProject</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$subProject(kotlin.Function1((jetbrains.buildServer.configs.kotlin.v2017_2.Project, kotlin.Unit)))/init">init</span><span class="symbol">:</span> <a href="./index.html"><span class="identifier">Project</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="./index.html"><span class="identifier">Project</span></a></code>
|
|
<p>Adds a subproject to this project</p>
|
|
<code><span class="keyword">fun </span><span class="identifier">subProject</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$subProject(jetbrains.buildServer.configs.kotlin.v2017_2.Project)/subProject">subProject</span><span class="symbol">:</span> <a href="./index.html"><span class="identifier">Project</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Adds the specified subproject to this project</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="sub-projects.html">subProjects</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">fun </span><span class="identifier">subProjects</span><span class="symbol">(</span><span class="keyword">vararg</span> <span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$subProjects(kotlin.Array((jetbrains.buildServer.configs.kotlin.v2017_2.Project)))/projects">projects</span><span class="symbol">:</span> <a href="./index.html"><span class="identifier">Project</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Sets subprojects of this project</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="template.html">template</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">fun </span><span class="identifier">template</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$template(jetbrains.buildServer.configs.kotlin.v2017_2.Template)/template">template</span><span class="symbol">:</span> <a href="../-template/index.html"><span class="identifier">Template</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Registers the specified template in this project</p>
|
|
<code><span class="keyword">fun </span><span class="identifier">template</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$template(kotlin.Function1((jetbrains.buildServer.configs.kotlin.v2017_2.Template, kotlin.Unit)))/init">init</span><span class="symbol">:</span> <a href="../-template/index.html"><span class="identifier">Template</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../-template/index.html"><span class="identifier">Template</span></a></code>
|
|
<p>Registers a new template initialized with the specified init block in this project</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="to-string.html">toString</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">toString</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="validate.html">validate</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">validate</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$validate(jetbrains.buildServer.configs.kotlin.v2017_2.ErrorConsumer)/consumer">consumer</span><span class="symbol">:</span> <a href="../-error-consumer/index.html"><span class="identifier">ErrorConsumer</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Validates this object and reports found errors to the provided consumer</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p><a href="vcs-root.html">vcsRoot</a></p>
|
|
</td>
|
|
<td>
|
|
<code><span class="keyword">fun </span><span class="identifier">vcsRoot</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$vcsRoot(jetbrains.buildServer.configs.kotlin.v2017_2.VcsRoot)/root">root</span><span class="symbol">:</span> <a href="../-vcs-root/index.html"><span class="identifier">VcsRoot</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
|
|
<p>Registers the specified VCS root in this project</p>
|
|
<code><span class="keyword">fun </span><span class="identifier">vcsRoot</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2.Project$vcsRoot(kotlin.Function1((jetbrains.buildServer.configs.kotlin.v2017_2.VcsRoot, kotlin.Unit)))/init">init</span><span class="symbol">:</span> <a href="../-vcs-root/index.html"><span class="identifier">VcsRoot</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../-vcs-root/index.html"><span class="identifier">VcsRoot</span></a></code>
|
|
<p>Registers a new VCS root initialized with specified init build in this project</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</BODY>
|
|
</HTML>
|