jetbrains.buildServer.configs.kotlin.v2018_1 / DslContext

DslContext

object DslContext

Context of DSL execution

Properties

hasSettingsRootId

val hasSettingsRootId: Boolean

Returns true if context provides an id of the settings VCS root.

isRelative

val isRelative: Boolean

Returns true if the context of DSL execution is relative.

parentProjectId

var parentProjectId: AbsoluteId

Absolute parent id of the project where versioned settings are enabled. Can be used only in relative DSL context.

projectId

var projectId: AbsoluteId

Absolute id of the project where versioned settings are enabled. Can be used only in relative DSL context.

projectName

var projectName: String

Name of the project where versioned settings are enabled. Can be used only in relative DSL context.

settingsRoot

val settingsRoot: VcsRoot

VCS root where settings are stored. Contains only root id, doesn't contain vcs type or parameters. Can be used only in relative DSL context.

settingsRootId

var settingsRootId: AbsoluteId

Absolute id of the VCS root where settings are stored. Can be used only in relative DSL context.

Functions

createId

fun createId(value: String): Id

Creates relative id if context is relative, otherwise creates an absolute id.